public void AddReference(MetadataReference reference) { if (reference == null) { throw new ArgumentNullException("reference"); } if (reference.Properties.Kind != MetadataImageKind.Assembly) { throw new ArgumentException("Expected an assembly reference.".NeedsLocalization(), "reference"); } pendingReferences = pendingReferences.Append(reference); }
public void ImportNamespace(string @namespace) { CommonScriptEngine.ValidateNamespace(@namespace); pendingNamespaces = pendingNamespaces.Append(@namespace); }