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);
        }
Exemple #2
0
 public TypeLibFuncAttribute(TypeLibFuncFlags flags)
 {
     _val = flags;
 }
Exemple #3
0
 public TypeLibFuncAttribute(short flags)
 {
     _val = (TypeLibFuncFlags)flags;
 }
Exemple #4
0
 public TypeLibFuncAttribute(TypeLibFuncFlags flags)
 {
     _val = flags;
 }
Exemple #5
0
        public void Ctor_TypeLibFuncFlags(TypeLibFuncFlags flags)
        {
            var attribute = new TypeLibFuncAttribute(flags);

            Assert.Equal(flags, attribute.Value);
        }
Exemple #6
0
 public TypeLibFuncAttribute(TypeLibFuncFlags flags)
 {
     this.flags = flags;
 }
Exemple #7
0
 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;
		}
Exemple #11
0
 // Constructors
 public TypeLibFuncAttribute(TypeLibFuncFlags flags)
 {
 }
Exemple #12
0
 internal TypeLibFuncAttribute(short flags)
 {
     _val = (TypeLibFuncFlags)flags;
 }
Exemple #13
0
 internal TypeLibFuncAttribute(TypeLibFuncFlags flags)
 {
     _val = flags;
 }
 // Constructors
 public TypeLibFuncAttribute(TypeLibFuncFlags flags)
 {
 }
Exemple #15
0
 public TypeLibFuncAttribute(short flags)
 {
     _val = (TypeLibFuncFlags)flags;
 }
 public static CustomAttributeBuilder GetBuilderForTypeLibFunc(TypeLibFuncFlags flags)
 {
     ConstructorInfo ctorTypeLibFunc = typeof(TypeLibFuncAttribute).GetConstructor(new Type[] { typeof(TypeLibFuncFlags) });
     return new CustomAttributeBuilder(ctorTypeLibFunc, new Object[] { flags });
 }
Exemple #17
0
 public TypeLibFuncAttribute(TypeLibFuncFlags flags)
 {
     Value = flags;
 }
Exemple #18
0
        public static CustomAttributeBuilder GetBuilderForTypeLibFunc(TypeLibFuncFlags flags)
        {
            ConstructorInfo ctorTypeLibFunc = typeof(TypeLibFuncAttribute).GetConstructor(new Type[] { typeof(TypeLibFuncFlags) });

            return(new CustomAttributeBuilder(ctorTypeLibFunc, new Object[] { flags }));
        }