Show / Hide Table of Contents

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.

Inheritance
System.Object
ActionTypeAttribute
Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public class ActionTypeAttribute : Attribute

Constructors

| Improve this Doc View Source

ActionTypeAttribute(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
System.Int32 typeIdentifier
| Improve this Doc View Source

ActionTypeAttribute(String)

Creates an ActionTypeAttribute with a given typeIdentifier.

Declaration
public ActionTypeAttribute(string typeIdentifier)
Parameters
Type Name Description
System.String typeIdentifier

An action class's unique identifier for serialization and deserialization.

Properties

| Improve this Doc View Source

TypeIdentifier

An action class's unique identifier for serialization and deserialization.

Declaration
public IValue TypeIdentifier { get; }
Property Value
Type Description
IValue
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium