System.Reflection.RuntimePropertyInfo.GetConstantValue C# (CSharp) Method

GetConstantValue() private method

private GetConstantValue ( bool raw ) : object
raw bool
return object
        internal object GetConstantValue(bool raw)
        {
            Object defaultValue = MdConstant.GetValue(Module.MetadataImport, m_token, PropertyType.GetTypeHandleInternal(), raw);
        
            if (defaultValue == DBNull.Value)
                // Arg_EnumLitValueNotFound -> "Literal value was not found."
                throw new InvalidOperationException(Environment.GetResourceString("Arg_EnumLitValueNotFound"));
        
            return defaultValue;
        }
            

Same methods

RuntimePropertyInfo::GetConstantValue ( ) : object