public ParameterizedType(ITypeDefinition genericType, IEnumerable <IType> typeArguments) { if (genericType == null) { throw new ArgumentNullException("genericType"); } if (typeArguments == null) { throw new ArgumentNullException("typeArguments"); } this.genericType = genericType; this.typeArguments = typeArguments.ToArray(); // copy input array to ensure it isn't modified if (this.typeArguments.Length == 0) { throw new ArgumentException("Cannot use ParameterizedType with 0 type arguments."); } if (genericType.TypeParameterCount != this.typeArguments.Length) { throw new ArgumentException("Number of type arguments must match the type definition's number of type parameters"); } for (int i = 0; i < this.typeArguments.Length; i++) { if (this.typeArguments[i] == null) { throw new ArgumentNullException("typeArguments[" + i + "]"); } IResolved r = this.typeArguments[i] as IResolved; if (r != null && r.Compilation != genericType.Compilation) { throw new InvalidOperationException("Cannot parameterize a type with type arguments from a different compilation."); } } }
public IList<Resource> GetResourcesFor(IResolved d) { return m_cache.GetResourcesFor(d); }
public IList<Wish> FindWishesFor(IResolved d) { return m_cache.FindWishesFor(d); }
public Resource(IResolved dep, FileInfo fullPath, String vsProjectPath) { Dep = dep; File = fullPath; VSProjectPath = vsProjectPath; }