// Initializes a substitution context. Returns false iff no substitutions will ever be performed.
private void Init(TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst)
{
if (typeArgsCls != null)
{
typeArgsCls.AssertValid();
ctypeCls = typeArgsCls.Count;
prgtypeCls = typeArgsCls.Items;
}
else
{
ctypeCls = 0;
prgtypeCls = null;
}
if (typeArgsMeth != null)
{
typeArgsMeth.AssertValid();
ctypeMeth = typeArgsMeth.Count;
prgtypeMeth = typeArgsMeth.Items;
}
else
{
ctypeMeth = 0;
prgtypeMeth = null;
}
this.grfst = grfst;
}