public static string TriggerName(this MethodInfo method) { var triggerAttribute = method.@Attribute <TriggerAttribute>(false); return((triggerAttribute != null) ? triggerAttribute.name : GetTriggerName(method.Name)); }
internal static object GetStateCore(MethodInfo stateMethod, Type stateType) { return(GetStateCore(stateMethod.@Attribute <StateAttribute>().stateObj, stateType)); }
public static TState GetState <TState>(this MethodInfo stateMethod) { return((TState)GetStateCore(stateMethod.@Attribute <StateAttribute>().stateObj, typeof(TState))); }