EnumBuilder.DefineLiteralCore(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, defines the named static field in an enumeration type with the specified constant value.
protected:
abstract System::Reflection::Emit::FieldBuilder ^ DefineLiteralCore(System::String ^ literalName, System::Object ^ literalValue);
protected abstract System.Reflection.Emit.FieldBuilder DefineLiteralCore (string literalName, object? literalValue);
abstract member DefineLiteralCore : string * obj -> System.Reflection.Emit.FieldBuilder
Protected MustOverride Function DefineLiteralCore (literalName As String, literalValue As Object) As FieldBuilder
Parameters
- literalName
- String
The name of the static field.
- literalValue
- Object
The constant value of the literal.
Returns
The defined field.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.