示例#1
0
        /// <summary>
        /// Function to clone an object.
        /// </summary>
        /// <returns>
        /// The cloned object.
        /// </returns>
        public EditorFile Clone()
        {
            var result = new EditorFile(_filePath)
            {
                DependsOn  = DependsOn.Clone(),
                PlugInType = PlugInType
            };

            foreach (KeyValuePair <string, string> attrib in Attributes)
            {
                result.Attributes[attrib.Key] = attrib.Value;
            }

            return(result);
        }