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);
        }
Exemple #2
0
 public TypeLibVarAttribute(short flags)
 {
     _val = (TypeLibVarFlags)flags;
 }
Exemple #3
0
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     _val = flags;
 }
Exemple #4
0
 public TypeLibVarAttribute(short flags)
 {
     this.flags = (TypeLibVarFlags)flags;
 }
Exemple #5
0
 // 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(short flags)
			{
				this.flags = (TypeLibVarFlags)flags;
			}
Exemple #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;
			}
Exemple #12
0
 internal TypeLibVarAttribute(short flags)
 {
     _val = (TypeLibVarFlags)flags;
 }
Exemple #13
0
 internal TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     _val = flags;
 }
Exemple #14
0
        public static CustomAttributeBuilder GetBuilderForTypeLibVar(TypeLibVarFlags flags)
        {
            ConstructorInfo ctorTypeLibVar = typeof(TypeLibVarAttribute).GetConstructor(new Type[] { typeof(TypeLibVarFlags) });

            return(new CustomAttributeBuilder(ctorTypeLibVar, new Object[] { flags }));
        }
Exemple #15
0
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
     _val = flags;
 }
 public TypeLibVarAttribute(TypeLibVarFlags flags)
 {
 }
Exemple #17
0
 public TypeLibVarAttribute(short flags)
 {
     _val = (TypeLibVarFlags)flags;
 }
Exemple #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();
 }