Beispiel #1
0
        public static string TriggerName(this MethodInfo method)
        {
            var triggerAttribute = method.@Attribute <TriggerAttribute>(false);

            return((triggerAttribute != null) ?
                   triggerAttribute.name : GetTriggerName(method.Name));
        }
Beispiel #2
0
 internal static object GetStateCore(MethodInfo stateMethod, Type stateType)
 {
     return(GetStateCore(stateMethod.@Attribute <StateAttribute>().stateObj, stateType));
 }
Beispiel #3
0
 public static TState GetState <TState>(this MethodInfo stateMethod)
 {
     return((TState)GetStateCore(stateMethod.@Attribute <StateAttribute>().stateObj, typeof(TState)));
 }