Пример #1
0
        /// <summary>
        /// Determines whether the specified <see cref="label"/> is valid for new <see cref="StructurePart"/> or not.
        /// </summary>
        /// <param name="label">The label.</param>
        /// <returns>yes if is valid, otherwise no</returns>
        internal bool IsValidLabel(string label)
        {
            foreach (var elm in elements)
            {
                if (FemNetStringCompairer.IsEqual(elm.Label, label))
                {
                    return(false);
                }
            }


            foreach (var nde in nodes)
            {
                if (FemNetStringCompairer.IsEqual(nde.Label, label))
                {
                    return(false);
                }
            }


            return(true);
        }
Пример #2
0
 /// <summary>
 /// Determines whether the specified objects are equal.
 /// </summary>
 /// <param name="x">The first object of type <paramref name="T" /> to compare.</param>
 /// <param name="y">The second object of type <paramref name="T" /> to compare.</param>
 /// <returns>
 /// true if the specified objects are equal; otherwise, false.
 /// </returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public bool Equals(string x, string y)
 {
     return(FemNetStringCompairer.IsEqual(x, y));
 }