コード例 #1
0
 public static dynamic GetTSObject(IsComponent dynObject)
 {
     if (dynObject is null)
     {
         return(null);
     }
     return(dynObject.teklaObject);
 }
コード例 #2
0
 public ComponentDescription(IsComponent attribute, Type componentClass, Assembly assembly)
 {
     ComponentClass = componentClass;
     Debug          = assembly.IsDebugDefined();
     GroupId        = attribute.GroupId;
     IsStatic       = attribute.IsStatic;
     Order          = attribute.Order;
     Profile        = assembly.IsProfileDefined();
     RunsOn         = attribute.RunsOn;
     EventMethods   = (
         from method in componentClass.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | (IsStatic ? BindingFlags.Static : BindingFlags.Instance))
         from attr in method.GetCustomAttributes <HandlesComponentEvents>(false)
         select new ComponentEventMethod(attr, method, assembly)
         ).ToList();
     EventMethods.Sort((x, y) => x.CompareTo(y));
     //Logger.DebugLog("Constructed " + ToString());
 }