StructFieldAttribute Class

Annotation for fields.

Definition

Namespace: Vajhoej.Record
Assembly: Record (in Record.dll) Version: 0.0.0.0
C#
[AttributeUsageAttribute(AttributeTargets.Field)]
public class StructFieldAttribute : Attribute
Inheritance
Object    Attribute    StructFieldAttribute

Constructors

StructFieldAttribute Default constructor.

Properties

Decimals Field decimals (for BCD's).
Encoding Field encoding (for strings).
Endianess Endianess.
Length Field length (for fixed length strings and BCD's).
N Field number.
Pad Pad to length (for fixed length strings).
PadChar Pad character (for fixed length strings with pad=true). Important: must be part of ASCII aka value in range 0 to 127.
PrefixLength Prefix length (for variable length strings).
Type Field type.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Zone Field zone value (for zoned BCD's).

Methods

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Explicit Interface Implementations

_AttributeGetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers.
(Inherited from Attribute)
_AttributeGetTypeInfoRetrieves the type information for an object, which can be used to get the type information for an interface.
(Inherited from Attribute)
_AttributeGetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1).
(Inherited from Attribute)
_AttributeInvokeProvides access to properties and methods exposed by an object.
(Inherited from Attribute)

See Also