Пример #1
0
        public override bool Equals(object obj)
        {
            if (object.ReferenceEquals((object)this, obj))
            {
                return(true);
            }
            TypeFormatInfo typeFormatInfo = (TypeFormatInfo)obj;

            return(this.SampleType == typeFormatInfo.SampleType && this.Format == typeFormatInfo.Format && this.FormatParameters == typeFormatInfo.FormatParameters);
        }
Пример #2
0
 protected string TypeToString(Type entityType, TypeFormatInfo settings)
 {
     if (settings.FullQualifiedName)
     {
         return(entityType.AssemblyQualifiedName);
     }
     else
     {
         return(TypeHelper.GetFullClassName(entityType));
     }
 }