Example #1
0
        public static TypeBuilder Create(string name, params string[] typeParameters)
        {
            var buff = TemplateParametersBuffer.Create();

            typeParameters.ForEach(it => buff.Add(it, VarianceMode.None));
            return(new TypeBuilder(NameDefinition.Create(name, buff.Values)));
        }
Example #2
0
 public static FunctionBuilder Create(
     string name,
     string nameParameter,
     VarianceMode variance,
     INameReference result,
     Block body)
 {
     return(Create(name, TemplateParametersBuffer.Create(variance, nameParameter).Values, result, body));
 }
Example #3
0
 public static FunctionBuilder CreateDeclaration(
     string name,
     string nameParameter,
     VarianceMode variance,
     ExpressionReadMode callMode,
     INameReference result)
 {
     return(new FunctionBuilder(name, TemplateParametersBuffer.Create(variance, nameParameter).Values,
                                null, callMode,
                                result,
                                (Block)null));
 }