Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void ImportNamespace(string @namespace)
 {
     CommonScriptEngine.ValidateNamespace(@namespace);
     pendingNamespaces = pendingNamespaces.Append(@namespace);
 }