Hello:

System.Globalization.CultureInfo.Equals

I made a littel implementation for this but i�m not sure if it�s correct or not:


public override bool Equals(object value)
{
if (!(value is CultureInfo))
return false;

CultureInfo ci = (values as CultureInfo);

return (ci.Calendar == this.Calendar &&
ci.CompareInfo == this.CompareInfo &&
ci.DateTimeFormat == this.DateTimeFormat &&
ci.DisplayName == this.DisplayName &&
ci.EnglishName == this.EnglishName &&
ci.IsNeutralCulture == this.IsNeutralCulture &&
ci.IsReadOnly == this.IsReadOnly &&
ci.Name == this.Name &&
ci.NativeName == this.NativeName &&
ci.NumberFormat == this.NumberFormat &&
ci.OptionalCalendars == this.OptionalCalendars &&
ci.TextInfo == this.TextInfo &&
ci.ThreeLetterISOLanguageName == this.ThreeLetterISOLanguageName &&
ci.ThreeLetterWindowsLanguageName == this.ThreeLetterWindowsLanguageName &&
ci.TwoLetterISOLanguageName == this.TwoLetterISOLanguageName &&
ci.UseUserOverride == this.UseUserOverride); }


Best regards
Carlos Guzm�n �lvarez
Vigo-Spain


_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Reply via email to