Esempio n. 1
0
 internal MergeSettings(MergeReferences references, MergeUsings usings, MergeFields fields, MergeMethods methods)
 {
     _references = references;
     _usings     = usings;
     _fields     = fields;
     _methods    = methods;
 }
Esempio n. 2
0
        internal MergeFields Clone()
        {
            MergeFields fields = new MergeFields();

            foreach (MergeField field in this)
            {
                fields.Add(new MergeField(field.Name, field.Type, field.InitialValue));
            }
            return(fields);
        }
Esempio n. 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));
        }