[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private CultureNameTab
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private CultureNameTable.cs,1.1,1.2 |
Date: |
Wed, 13 Nov 2002 23:04:20 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private
In directory subversions:/tmp/cvs-serv4455/runtime/System/Private
Modified Files:
CultureNameTable.cs
Log Message:
Resolve some circularity problems with the initialization of "CurrentCulture".
Index: CultureNameTable.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/CultureNameTable.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** CultureNameTable.cs 15 Dec 2001 02:13:00 -0000 1.1
--- CultureNameTable.cs 14 Nov 2002 04:04:16 -0000 1.2
***************
*** 690,694 ****
// Get the name information for a specific culture, by name.
! public static CultureName GetNameInfoByName(String name)
{
// Create the culture name table.
--- 690,694 ----
// Get the name information for a specific culture, by name.
! public static CultureName GetNameInfoByName(String name, bool
throwOnError)
{
// Create the culture name table.
***************
*** 707,715 ****
// Could not find the culture.
! throw new
ArgumentException(_("Arg_InvalidCulture"));
}
// Get the name information for a specific culture, by identifier.
! public static CultureName GetNameInfoByID(int cultureID)
{
// Create the culture name table.
--- 707,719 ----
// Could not find the culture.
! if(throwOnError)
! {
! throw new
ArgumentException(_("Arg_InvalidCulture"));
! }
! return null;
}
// Get the name information for a specific culture, by identifier.
! public static CultureName GetNameInfoByID(int cultureID, bool
throwOnError)
{
// Create the culture name table.
***************
*** 728,732 ****
// Could not find the culture.
! throw new
ArgumentException(_("Arg_InvalidCulture"));
}
--- 732,740 ----
// Could not find the culture.
! if(throwOnError)
! {
! throw new
ArgumentException(_("Arg_InvalidCulture"));
! }
! return null;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private CultureNameTable.cs,1.1,1.2,
Rhys Weatherley <address@hidden> <=