예제 #1
0
 internal static CilConstant Create(Constant constant, ref CilReaders readers)
 {
     CilConstant ilConstant = new CilConstant();
     ilConstant._constant = constant;
     ilConstant._readers = readers;
     ilConstant._isTypeInitialized = false;
     return ilConstant;
 }
예제 #2
0
        internal static CilConstant Create(Constant constant, ref CilReaders readers)
        {
            CilConstant ilConstant = new CilConstant();

            ilConstant._constant          = constant;
            ilConstant._readers           = readers;
            ilConstant._isTypeInitialized = false;
            return(ilConstant);
        }
예제 #3
0
        private CilConstant GetDefaultValue()
        {
            Constant constant = _readers.MdReader.GetConstant(_propertyDef.GetDefaultValue());

            return(CilConstant.Create(constant, ref _readers));
        }
예제 #4
0
        private CilConstant GetDefaultValue()
        {
            Constant value = _readers.MdReader.GetConstant(_parameter.GetDefaultValue());

            return(CilConstant.Create(value, ref _readers));
        }
예제 #5
0
        private CilConstant GetDefault()
        {
            Constant value = _readers.MdReader.GetConstant(_fieldDefinition.GetDefaultValue());

            return(CilConstant.Create(value, ref _readers));
        }