public static DomainOperator Create(AssemblyDomain domain) { var result = new DomainOperator(); result._domain = domain; return(result); }
public static DomainOperator Create(string domainName) { var result = new DomainOperator(); result._domain = DomainManagment.Create(domainName); return(result); }
public static DomainOperator Create(AssemblyDomain domain, ComplierResultTarget target, ComplierResultError error = ComplierResultError.None) { DomainOperator instance = new DomainOperator(); instance.Complier.EnumCRError = error; instance.Complier.EnumCRTarget = target; instance.Complier.Domain = domain; return(instance); }
public static DomainOperator Random(bool complieInFile = false) { DomainOperator instance = new DomainOperator { _complieInFile = complieInFile, _domain = DomainManagment.Random }; return(instance); }
public static DomainOperator Create(AssemblyDomain domain, bool complieInFile = false) { DomainOperator instance = new DomainOperator { _complieInFile = complieInFile, _domain = domain }; return(instance); }
public static DomainOperator Create(string domainName = default, bool complieInFile = false) { DomainOperator instance = new DomainOperator { _complieInFile = complieInFile }; if (domainName == default) { instance._domain = DomainManagment.Default; } else { instance._domain = DomainManagment.Create(domainName); } return(instance); }