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);
        }
Ejemplo n.º 2
0
 public TypeLibVarAttribute(short flags)
 {
     _val = (TypeLibVarFlags)flags;
 }
Ejemplo n.º 3
0
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     _val = flags;
 }
Ejemplo n.º 4
0
 public TypeLibVarAttribute(short flags)
 {
     this.flags = (TypeLibVarFlags)flags;
 }
Ejemplo n.º 5
0
 // Constructor.
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     this.flags = flags;
 }
Ejemplo n.º 6
0
 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(short flags)
			{
				this.flags = (TypeLibVarFlags)flags;
			}
Ejemplo n.º 9
0
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     Value = flags;
 }
        public void Ctor_TypeLibVarFlags(TypeLibVarFlags flags)
        {
            var attribute = new TypeLibVarAttribute(flags);

            Assert.Equal(flags, attribute.Value);
        }
	// Constructor.
	public TypeLibVarAttribute(TypeLibVarFlags flags)
			{
				this.flags = flags;
			}
Ejemplo n.º 12
0
 internal TypeLibVarAttribute(short flags)
 {
     _val = (TypeLibVarFlags)flags;
 }
Ejemplo n.º 13
0
 internal TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     _val = flags;
 }
Ejemplo n.º 14
0
        public static CustomAttributeBuilder GetBuilderForTypeLibVar(TypeLibVarFlags flags)
        {
            ConstructorInfo ctorTypeLibVar = typeof(TypeLibVarAttribute).GetConstructor(new Type[] { typeof(TypeLibVarFlags) });

            return(new CustomAttributeBuilder(ctorTypeLibVar, new Object[] { flags }));
        }
Ejemplo n.º 15
0
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     _val = flags;
 }
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
 }
Ejemplo n.º 17
0
 public TypeLibVarAttribute(short flags)
 {
     _val = (TypeLibVarFlags)flags;
 }
Ejemplo n.º 18
0
 /// <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();
 }