Пример #1
0
 public DataDefType(string defName, params object[] baseTypes)
     : base(defName)
 {
     foreach (object obj in baseTypes)
     {
         this.BaseTypes.Add(GraphUnit.NewType(obj));
     }
 }
Пример #2
0
 public PropertyType(MemberAttributes memberAttributes, object propertyType, string propertyName, bool hasGet, bool hasSet)
 {
     this.Type       = GraphUnit.NewType(propertyType);
     this.Name       = propertyName;
     this.Attributes = memberAttributes;
     this.HasGet     = hasGet;
     this.HasSet     = hasSet;
 }
Пример #3
0
 public HandlerType(object handlerType, MethodRef method)
     : base(GraphUnit.NewType(handlerType), ((CodeMethodReferenceExpression)method.Expression).TargetObject,
            ((CodeMethodReferenceExpression)method.Expression).MethodName)
 {
 }
Пример #4
0
 public HandlerType(object handlerType, CodeExpression methodTarget, string methodName)
     : base(GraphUnit.NewType(handlerType), methodTarget, methodName)
 {
 }
Пример #5
0
 public CodeDelegateCreateExpression Create(string methodName)
 {
     return(this.Create(GraphUnit.my(), methodName));
 }
Пример #6
0
 public DelegateType(TypeAttributes attributes, object returnType, string delegateName)
 {
     this.TypeAttributes = attributes;
     this.Name           = delegateName;
     this.ReturnType     = GraphUnit.NewType(returnType);
 }
Пример #7
0
 public EventType(MemberAttributes memberAttributes, object eventType, string eventName)
 {
     this.Attributes = memberAttributes;
     this.Name       = eventName;
     this.Type       = GraphUnit.NewType(eventType);
 }