コード例 #1
0
ファイル: Trigger.cs プロジェクト: DmitryGaravsky/FSM.POCO
        public static string TriggerName(this MethodInfo method)
        {
            var triggerAttribute = method.@Attribute <TriggerAttribute>(false);

            return((triggerAttribute != null) ?
                   triggerAttribute.name : GetTriggerName(method.Name));
        }
コード例 #2
0
ファイル: State.cs プロジェクト: DmitryGaravsky/FSM.POCO
 internal static object GetStateCore(MethodInfo stateMethod, Type stateType)
 {
     return(GetStateCore(stateMethod.@Attribute <StateAttribute>().stateObj, stateType));
 }
コード例 #3
0
ファイル: State.cs プロジェクト: DmitryGaravsky/FSM.POCO
 public static TState GetState <TState>(this MethodInfo stateMethod)
 {
     return((TState)GetStateCore(stateMethod.@Attribute <StateAttribute>().stateObj, typeof(TState)));
 }