Example #1
0
        /// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>
        /// A new object that is a copy of this instance.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public object Clone()
        {
            var clone = new StyleSheet();
            if (null != Declarations)
                clone.Declarations = ArrayUtil<StyleDeclaration>.Clone(Declarations);

            return clone;
        }
Example #2
0
 public bool Equals(StyleSheet other)
 {
     //Debug.Log("Equals1 called");
     if (ReferenceEquals(null, other)) return false;
     return /*Equals(other.Name, Name) && */ArrayUtil<StyleSheetValuesFactory>.Equals(other.Declarations, Declarations);
 }