internal static string GetName(NsTarget t) { FieldInfo f = typeof(NsTarget).GetField(Enum.GetName(typeof(NsTarget), t)); TargetNameAttribute n = (TargetNameAttribute)Attribute.GetCustomAttribute(f, typeof(TargetNameAttribute)); return(n == null ? null : n.Value); }
public NsExtensionAttribute(NsTarget target, string name, FolderAttributes attributes) { if (name == null) { throw new ArgumentNullException("name"); } this.target = target; this.name = name; this.attributes = attributes; }