System.Reflection.Emit.EnumBuilder.GetElementType C# (CSharp) Method

GetElementType() public method

public GetElementType ( ) : Type
return System.Type
        public override Type GetElementType() { throw null; }
        public override System.Type[] GetGenericParameterConstraints() { throw null; }

Usage Example

 public void NegTest1()
 {
     CreateCallee();
     _myEnumBuilder = _myModuleBuilder.DefineEnum("myEnum", TypeAttributes.Public, typeof(int));
     Assert.Throws<NotSupportedException>(() => { Type typeVal = _myEnumBuilder.GetElementType(); });
 }