Class BehaviorTypeRegistry
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Services
Assembly: Cephalon.Behaviors.dll
Default mutable implementation of BehaviorCollectionBuilder.Register<TBehavior>()
and consumed by
public sealed class BehaviorTypeRegistry : IBehaviorTypeRegistryInheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”BehaviorTypeRegistry()
Section titled “ BehaviorTypeRegistry()”Initializes a new empty
public BehaviorTypeRegistry()Methods
Section titled “Methods”Register(string, Type)
Section titled “ Register(string, Type)”Registers a mapping from behaviorId to behaviorType.
public void Register(string behaviorId, Type behaviorType)Parameters
Section titled “Parameters”behaviorId string
The stable behavior identifier.
behaviorType Type
The concrete behavior implementation type.
TryGetType(string, out Type?)
Section titled “ TryGetType(string, out Type?)”Attempts to resolve the concrete behavior type for the given identifier.
public bool TryGetType(string behaviorId, out Type? behaviorType)Parameters
Section titled “Parameters”behaviorId string
The stable behavior identifier to look up.
behaviorType Type?
When this method returns true, receives the concrete behavior type; otherwise null.