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

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

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