示例#1
0
        public ReadOnlyCollection <IType> GetArgumentTypes()
        {
            if (_argumentTypes == null)
            {
                IType[] argumentTypes = _argumentTypeSignatures.Select(i => VirtualMachine.FindType(i)).ToArray();
                if (argumentTypes.OfType <UnloadedReferenceType>().Any())
                {
                    return(new ReadOnlyCollection <IType>(argumentTypes));
                }

                _argumentTypes = argumentTypes;
            }

            return(new ReadOnlyCollection <IType>(_argumentTypes));
        }
示例#2
0
        public IType GetFieldType()
        {
            if (_fieldType == null)
            {
                IType fieldType = VirtualMachine.FindType(GetSignature());
                if (fieldType is UnloadedReferenceType)
                {
                    return(fieldType);
                }

                _fieldType = fieldType;
            }

            return(_fieldType);
        }
 public IType GetComponentType()
 {
     return(VirtualMachine.FindType(GetComponentSignature()));
 }
示例#4
0
 public IType GetReturnType()
 {
     return(VirtualMachine.FindType(_returnTypeSignature));
 }
 public IType GetLocalType()
 {
     return(VirtualMachine.FindType(GetSignature()));
 }