Class ActionTypeAttribute
Indicates that an action class (i.e., a class implementing IAction) can be held by transactions and blocks. It also gives an action class a TypeIdentifier for serialization and deserialization.
Inherited Members
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Object.GetType()
System.Object.ToString()
Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class ActionTypeAttribute : Attribute
Constructors
| Improve this Doc View SourceActionTypeAttribute(Int32)
Indicates that an action class (i.e., a class implementing IAction) can be held by transactions and blocks. It also gives an action class a TypeIdentifier for serialization and deserialization.
Declaration
public ActionTypeAttribute(int typeIdentifier)
Parameters
Type | Name | Description |
---|---|---|
Int32 | typeIdentifier |
ActionTypeAttribute(String)
Creates an ActionTypeAttribute with a given
typeIdentifier
.
Declaration
public ActionTypeAttribute(string typeIdentifier)
Parameters
Type | Name | Description |
---|---|---|
String | typeIdentifier | An action class's unique identifier for serialization and deserialization. |
Properties
| Improve this Doc View SourceTypeIdentifier
An action class's unique identifier for serialization and deserialization.
Declaration
public IValue TypeIdentifier { get; }
Property Value
Type | Description |
---|---|
Bencodex.Types.IValue |