PeterO.Cbor.ICBORTag
PeterO.Cbor.ICBORTag
public interface ICBORTag
Deprecated. May be removed in the future without replacement. Not as useful as ICBORConverters and ICBORObjectConverters for FromObject and ToObject.
Implemented by classes that validate CBOR objects belonging to a specific tag.
Member Summary
GetTypeFilter()
- Gets a type filter specifying what kinds of CBOR objects are supported by this tag.ValidateObject(PeterO.Cbor.CBORObject)
- Generates a CBOR object based on the data of another object.
GetTypeFilter
PeterO.Cbor.CBORTypeFilter GetTypeFilter();
Gets a type filter specifying what kinds of CBOR objects are supported by this tag.
Return Value:
A CBOR type filter.
ValidateObject
PeterO.Cbor.CBORObject ValidateObject( PeterO.Cbor.CBORObject obj);
Generates a CBOR object based on the data of another object. If the data is not valid, should throw a CBORException.
Parameters:
- obj: A CBOR object with the corresponding tag handled by the ICBORTag object.
Return Value:
A CBORObject object. Note that this method may choose to return the same object as the parameter.