public static bool IsHiddenField(FieldInfo fi) { object[] FieldAttributes = fi.GetCustomAttributes(typeof(TypeLibVarAttribute), true); if (FieldAttributes.Length > 0) { TypeLibVarAttribute tlv = ( TypeLibVarAttribute )FieldAttributes[0]; TypeLibVarFlags flags = tlv.Value; return((flags & TypeLibVarFlags.FHidden) != 0); } return(false); }
public TypeLibVarAttribute(short flags) { _val = (TypeLibVarFlags)flags; }
public TypeLibVarAttribute(TypeLibVarFlags flags) { _val = flags; }
public TypeLibVarAttribute(short flags) { this.flags = (TypeLibVarFlags)flags; }
// Constructor. public TypeLibVarAttribute(TypeLibVarFlags flags) { this.flags = flags; }
public static CustomAttributeBuilder GetBuilderForTypeLibVar(TypeLibVarFlags flags) { ConstructorInfo ctorTypeLibVar = typeof(TypeLibVarAttribute).GetConstructor(new Type[] { typeof(TypeLibVarFlags) }); return new CustomAttributeBuilder(ctorTypeLibVar, new Object[] { flags }); }
public TypeLibVarAttribute(TypeLibVarFlags flags) { }
public TypeLibVarAttribute(TypeLibVarFlags flags) { Value = flags; }
public void Ctor_TypeLibVarFlags(TypeLibVarFlags flags) { var attribute = new TypeLibVarAttribute(flags); Assert.Equal(flags, attribute.Value); }
internal TypeLibVarAttribute(short flags) { _val = (TypeLibVarFlags)flags; }
internal TypeLibVarAttribute(TypeLibVarFlags flags) { _val = flags; }
public static CustomAttributeBuilder GetBuilderForTypeLibVar(TypeLibVarFlags flags) { ConstructorInfo ctorTypeLibVar = typeof(TypeLibVarAttribute).GetConstructor(new Type[] { typeof(TypeLibVarFlags) }); return(new CustomAttributeBuilder(ctorTypeLibVar, new Object[] { flags })); }
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.TypeLibVarAttribute" /> class with the specified <see cref="T:System.Runtime.InteropServices.TypeLibVarFlags" /> value.</summary><param name="flags">The <see cref="T:System.Runtime.InteropServices.TypeLibVarFlags" /> value for the attributed field as found in the type library it was imported from. </param> public TypeLibVarAttribute(TypeLibVarFlags flags) { throw new NotImplementedException(); }