Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }