public static bool IsHiddenMethod(MethodInfo mi) { object[] MethodAttributes = mi.GetCustomAttributes(typeof(TypeLibFuncAttribute), true); if (MethodAttributes.Length > 0) { TypeLibFuncAttribute tlf = ( TypeLibFuncAttribute )MethodAttributes[0]; TypeLibFuncFlags flags = tlf.Value; return((flags & TypeLibFuncFlags.FHidden) != 0); } return(false); }
public TypeLibFuncAttribute(TypeLibFuncFlags flags) { _val = flags; }
public TypeLibFuncAttribute(short flags) { _val = (TypeLibFuncFlags)flags; }
public void Ctor_TypeLibFuncFlags(TypeLibFuncFlags flags) { var attribute = new TypeLibFuncAttribute(flags); Assert.Equal(flags, attribute.Value); }
public TypeLibFuncAttribute(TypeLibFuncFlags flags) { this.flags = flags; }
public TypeLibFuncAttribute(short flags) { this.flags = (TypeLibFuncFlags)flags; }
/// <summary>Initializes a new instance of the TypeLibFuncAttribute class with the specified <see cref="T:System.Runtime.InteropServices.TypeLibFuncFlags" /> value.</summary><param name="flags">The <see cref="T:System.Runtime.InteropServices.TypeLibFuncFlags" /> value for the attributed method as found in the type library it was imported from. </param> public TypeLibFuncAttribute(TypeLibFuncFlags flags) { throw new NotImplementedException(); }
public TypeLibFuncAttribute (TypeLibFuncFlags flags) { this.flags = flags; }
public TypeLibFuncAttribute (short flags) { this.flags = (TypeLibFuncFlags) flags; }
// Constructors public TypeLibFuncAttribute(TypeLibFuncFlags flags) { }
internal TypeLibFuncAttribute(short flags) { _val = (TypeLibFuncFlags)flags; }
internal TypeLibFuncAttribute(TypeLibFuncFlags flags) { _val = flags; }
public static CustomAttributeBuilder GetBuilderForTypeLibFunc(TypeLibFuncFlags flags) { ConstructorInfo ctorTypeLibFunc = typeof(TypeLibFuncAttribute).GetConstructor(new Type[] { typeof(TypeLibFuncFlags) }); return new CustomAttributeBuilder(ctorTypeLibFunc, new Object[] { flags }); }
public TypeLibFuncAttribute(TypeLibFuncFlags flags) { Value = flags; }
public static CustomAttributeBuilder GetBuilderForTypeLibFunc(TypeLibFuncFlags flags) { ConstructorInfo ctorTypeLibFunc = typeof(TypeLibFuncAttribute).GetConstructor(new Type[] { typeof(TypeLibFuncFlags) }); return(new CustomAttributeBuilder(ctorTypeLibFunc, new Object[] { flags })); }