Beispiel #1
0
 /// <summary>Standard equals method.</summary>
 /// <remarks>Standard equals method.</remarks>
 /// <param name="obj">- the other object</param>
 /// <returns>true if this object equals the parameter; false otherwise.</returns>
 public override bool Equals(object obj)
 {
     if (obj == null)
     {
         return(false);
     }
     else
     {
         if (GetType() != obj.GetType())
         {
             return(false);
         }
         else
         {
             Ca.Infoway.Messagebuilder.Xml.TypeName that = (Ca.Infoway.Messagebuilder.Xml.TypeName)obj;
             return(new EqualsBuilder().Append(this.name, that.name).IsEquals());
         }
     }
 }
Beispiel #2
0
 /// <summary>Get the name of the top-level type.</summary>
 /// <remarks>
 /// Get the name of the top-level type.  For example the root name of
 /// "PRPA_MT101103CA.ParameterList" is "PRPA_MT101103CA".  The root name
 /// of "PRPA_MT101103CA" is "PRPA_MT101103CA".
 /// </remarks>
 /// <returns>the root name.</returns>
 public static string DetermineRootName(string name)
 {
     Ca.Infoway.Messagebuilder.Xml.TypeName typeName = new Ca.Infoway.Messagebuilder.Xml.TypeName(name);
     return(typeName.RootName.Name);
 }