Пример #1
0
 public MethodSignature(
     bool hasThis,
     bool explicitThis,
     CallingConvention callingConvention,
     int genericParamCount,
     IReadOnlyList<Parameter> parameters,
     Type retType
     )
 {
     m_hasThis = hasThis;
     m_explicitThis = explicitThis;
     m_callingConvention = callingConvention.CheckDefined("callingConvention");
     m_genericParamCount = genericParamCount.CheckGTE(0, "genericParamCount");
     m_parameters = parameters.CheckNotNull("parameters");
     m_retType = retType.CheckNotNull("retType");
 }
Пример #2
0
 internal GenericInstanceType(Type baseType, IReadOnlyList<Type> parameters)
     : base(TypeKind.GenericInstance)
 {
     m_baseType = baseType.CheckNotNull("baseType");
     m_genericArguments = parameters.CheckNotNull("parameters");
 }