Beispiel #1
0
 public ReflectedEnum(EnumIdentifier name, MemberInfo mi, Type targetType)
     : base(name, null, mi, targetType)
 {
     DeclaringName = mi.DeclaringType != targetType
         ? IdentifierFor.Enum(mi, mi.DeclaringType)
         : name;
 }
Beispiel #2
0
 public ReflectedField(Identifier name, FieldInfo field, Type targetType)
     : base(name, null, field, targetType)
 {
     DeclaringName = field.DeclaringType != targetType
         ? IdentifierFor.Field(field, field.DeclaringType)
         : name;
 }
Beispiel #3
0
 public ReflectedMethod(Identifier name, MethodBase method, Type targetType)
     : base(name, null, method, targetType)
 {
     DeclaringName = method.DeclaringType != targetType
         ? IdentifierFor.Method(method, method.DeclaringType)
         : name;
 }
Beispiel #4
0
 public ReflectedProperty(Identifier name, PropertyInfo property, Type targetType)
     : base(name, null, property, targetType)
 {
     DeclaringName = property.DeclaringType != targetType
         ? IdentifierFor.Property(property, property.DeclaringType)
         : name;
 }
Beispiel #5
0
 public ReflectedEvent(EventIdentifier name, EventInfo ev, Type targetType)
     : base(name, null, ev, targetType)
 {
     DeclaringName = ev.DeclaringType != targetType
         ? IdentifierFor.Event(ev, ev.DeclaringType)
         : name;
 }