[Mono-list] ResourceManager.GetString

Carlos Guzmán Álvarez carlosga@telefonica.net
Mon, 18 Nov 2002 13:46:12 +0100


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