Пример #1
0
 internal MergeSettings(MergeReferences references, MergeUsings usings, MergeFields fields, MergeMethods methods)
 {
     _references = references;
     _usings     = usings;
     _fields     = fields;
     _methods    = methods;
 }
Пример #2
0
        internal MergeReferences Clone()
        {
            MergeReferences references = new MergeReferences();

            foreach (string reference in _references)
            {
                references._references.Add(reference);
            }
            return(references);
        }
Пример #3
0
        public MergeSettings()
        {
            _references = new MergeReferences();
            _usings     = new MergeUsings();
            _fields     = new MergeFields();
            _methods    = new MergeMethods();

            // Add some standard stuff that will be needed.

            _references.Add(typeof(string).Assembly);
            _usings.Add(typeof(MemoryStream));
        }