20 [__DynamicallyInvokable]
23 internal class CultureNameResourceSetPair
25 public string lastCultureName;
30 internal class ResourceManagerMediator
34 internal string ModuleDir => _rm.moduleDir;
36 internal Type LocationInfo => _rm._locationInfo;
38 internal Type UserResourceSet => _rm._userResourceSet;
46 return _rm._neutralResourcesCulture;
50 _rm._neutralResourcesCulture = value;
54 internal bool LookedForSatelliteContractVersion
58 return _rm._lookedForSatelliteContractVersion;
62 _rm._lookedForSatelliteContractVersion = value;
66 internal Version SatelliteContractVersion
70 return _rm._satelliteContractVersion;
74 _rm._satelliteContractVersion = value;
86 _rm._fallbackLoc = value;
90 internal RuntimeAssembly CallingAssembly => _rm.m_callingAssembly;
116 internal bool TryLookingForSatellite(
CultureInfo lookForCulture)
118 return _rm.TryLookingForSatellite(lookForCulture);
126 [Obsolete(
"call InternalGetResourceSet instead")]
132 private string moduleDir;
137 private Type _locationInfo;
139 private Type _userResourceSet;
144 private CultureNameResourceSetPair _lastUsedResourceCache;
146 private bool _ignoreCase;
148 private bool UseManifest;
150 [OptionalField(VersionAdded = 1)]
151 private bool UseSatelliteAssem;
153 private static volatile Hashtable _installedSatelliteInfo;
155 private static volatile bool _checkedConfigFile;
161 private Version _satelliteContractVersion;
164 private bool _lookedForSatelliteContractVersion;
166 [OptionalField(VersionAdded = 1)]
169 [OptionalField(VersionAdded = 4)]
170 private RuntimeAssembly m_callingAssembly;
173 private IResourceGroveler resourceGroveler;
183 internal static readonly
string ResReaderTypeName = typeof(
ResourceReader).FullName;
185 internal static readonly
string ResSetTypeName = typeof(RuntimeResourceSet).FullName;
187 internal static readonly
string MscorlibName = typeof(
ResourceReader).Assembly.FullName;
189 internal const string ResFileExtension =
".resources";
191 internal const int ResFileExtensionLength = 10;
193 internal static readonly
int DEBUG = 0;
195 private static volatile bool s_IsAppXModel;
198 private bool _bUsingModernResourceManagement;
202 private WindowsRuntimeResourceManagerBase _WinRTResourceManager;
205 private bool _PRIonAppXInitialized;
208 private PRIExceptionInfo _PRIExceptionInfo;
235 if (!(_userResourceSet ==
null))
237 return _userResourceSet;
239 return typeof(RuntimeResourceSet);
253 _fallbackLoc = value;
267 _lastUsedResourceCache =
new CultureNameResourceSetPair();
268 ResourceManagerMediator mediator =
new ResourceManagerMediator(
this);
269 resourceGroveler =
new ManifestBasedResourceGroveler(mediator);
274 if (baseName ==
null)
278 if (resourceDir ==
null)
283 moduleDir = resourceDir;
284 _userResourceSet = usingResourceSet;
287 _lastUsedResourceCache =
new CultureNameResourceSetPair();
289 ResourceManagerMediator mediator =
new ResourceManagerMediator(
this);
290 resourceGroveler =
new FileBasedResourceGroveler(mediator);
291 if (FrameworkEventSource.IsInitialized && FrameworkEventSource.Log.IsEnabled())
295 if (resourceGroveler.HasNeutralResources(invariantCulture, resourceFileName))
312 [__DynamicallyInvokable]
315 if (baseName ==
null)
319 if (
null == assembly)
323 if (!(assembly is RuntimeAssembly))
329 SetAppXConfiguration();
330 CommonAssemblyInit();
332 if (assembly == typeof(
object).
Assembly && m_callingAssembly != assembly)
334 m_callingAssembly =
null;
349 if (baseName ==
null)
353 if (
null == assembly)
357 if (!(assembly is RuntimeAssembly))
363 if (usingResourceSet !=
null && usingResourceSet != _minResourceSet && !usingResourceSet.
IsSubclassOf(_minResourceSet))
367 _userResourceSet = usingResourceSet;
368 CommonAssemblyInit();
370 if (assembly == typeof(
object).
Assembly && m_callingAssembly != assembly)
372 m_callingAssembly =
null;
380 [__DynamicallyInvokable]
383 if (
null == resourceSource)
387 if (!(resourceSource is RuntimeType))
391 _locationInfo = resourceSource;
394 SetAppXConfiguration();
395 CommonAssemblyInit();
399 m_callingAssembly =
null;
406 _resourceSets =
null;
407 resourceGroveler =
null;
408 _lastUsedResourceCache =
null;
411 [SecuritySafeCritical]
416 _lastUsedResourceCache =
new CultureNameResourceSetPair();
417 ResourceManagerMediator mediator =
new ResourceManagerMediator(
this);
420 resourceGroveler =
new ManifestBasedResourceGroveler(mediator);
424 resourceGroveler =
new FileBasedResourceGroveler(mediator);
426 if (m_callingAssembly ==
null)
428 m_callingAssembly = (RuntimeAssembly)_callingAssembly;
430 if (UseManifest && _neutralResourcesCulture ==
null)
432 _neutralResourcesCulture = ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(
MainAssembly, ref _fallbackLoc);
439 _callingAssembly = m_callingAssembly;
440 UseSatelliteAssem = UseManifest;
444 [SecuritySafeCritical]
445 private void CommonAssemblyInit()
447 if (!_bUsingModernResourceManagement)
451 _lastUsedResourceCache =
new CultureNameResourceSetPair();
453 ResourceManagerMediator mediator =
new ResourceManagerMediator(
this);
454 resourceGroveler =
new ManifestBasedResourceGroveler(mediator);
456 _neutralResourcesCulture = ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(
MainAssembly, ref _fallbackLoc);
457 if (_bUsingModernResourceManagement)
461 if (FrameworkEventSource.IsInitialized && FrameworkEventSource.Log.IsEnabled())
465 if (resourceGroveler.HasNeutralResources(invariantCulture, resourceFileName))
471 string resName = resourceFileName;
472 if (_locationInfo !=
null && _locationInfo.
Namespace !=
null)
474 resName = _locationInfo.
Namespace +
Type.Delimiter.ToString() + resourceFileName;
485 if (FrameworkEventSource.IsInitialized)
491 _lastUsedResourceCache =
new CultureNameResourceSetPair();
501 while (dictionaryEnumerator.
MoveNext())
505 if (dictionaryEnumerator2 !=
null)
507 while (dictionaryEnumerator2.
MoveNext())
533 if (!culture.HasInvariantCultureName)
536 stringBuilder.
Append(
'.');
539 stringBuilder.
Append(
".resources");
545 if (_neutralResourcesCulture !=
null && culture.
Name == _neutralResourcesCulture.
Name)
549 if (_lastUsedResourceCache !=
null)
551 lock (_lastUsedResourceCache)
553 if (culture.
Name == _lastUsedResourceCache.lastCultureName)
555 return _lastUsedResourceCache.lastResourceSet;
560 ResourceSet value =
null;
561 if (resourceSets !=
null)
570 if (_lastUsedResourceCache !=
null)
572 lock (_lastUsedResourceCache)
574 _lastUsedResourceCache.lastCultureName = culture.
Name;
575 _lastUsedResourceCache.lastResourceSet = value;
595 [SecuritySafeCritical]
603 if (resourceSets !=
null)
613 StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
614 if (UseManifest && culture.HasInvariantCultureName)
617 RuntimeAssembly runtimeAssembly = (RuntimeAssembly)
MainAssembly;
618 Stream manifestResourceStream = runtimeAssembly.GetManifestResourceStream(_locationInfo, resourceFileName, m_callingAssembly ==
MainAssembly, ref stackMark);
619 if (createIfNotExists && manifestResourceStream !=
null)
621 ResourceSet value = ((ManifestBasedResourceGroveler)resourceGroveler).CreateResourceSet(manifestResourceStream,
MainAssembly);
622 AddResourceSet(resourceSets, culture.
Name, ref value);
640 [SecuritySafeCritical]
643 StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
657 if (FrameworkEventSource.IsInitialized)
664 ResourceFallbackManager resourceFallbackManager =
new ResourceFallbackManager(requestedCulture, _neutralResourcesCulture, tryParents);
665 foreach (
CultureInfo item
in resourceFallbackManager)
667 if (FrameworkEventSource.IsInitialized)
673 if (resourceSets.
TryGetValue(item.Name, out value))
675 if (FrameworkEventSource.IsInitialized)
679 if (requestedCulture != item)
686 value = resourceGroveler.GrovelForResourceSet(item, resourceSets, tryParents, createIfNotExists, ref stackMark);
695 if (value !=
null && cultureInfo !=
null)
697 foreach (
CultureInfo item2
in resourceFallbackManager)
699 AddResourceSet(resourceSets, item2.
Name, ref value);
700 if (item2 == cultureInfo)
712 lock (localResourceSets)
714 if (localResourceSets.
TryGetValue(cultureName, out ResourceSet value))
727 localResourceSets.
Add(cultureName, rs);
763 if (customAttributes.Length == 0)
775 if (!(a == typeof(
object).
Assembly))
786 [SecuritySafeCritical]
790 return ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(a, ref fallbackLocation);
793 internal static bool CompareNames(
string asmTypeName1,
string typeName2,
AssemblyName asmName2)
795 int num = asmTypeName1.IndexOf(
',');
796 if (((num == -1) ? asmTypeName1.Length : num) != typeName2.Length)
800 if (
string.Compare(asmTypeName1, 0, typeName2, 0, typeName2.Length,
StringComparison.Ordinal) != 0)
808 while (
char.IsWhiteSpace(asmTypeName1[++num]))
826 if (publicKeyToken !=
null && publicKeyToken2 !=
null)
828 if (publicKeyToken.Length != publicKeyToken2.Length)
832 for (
int i = 0; i < publicKeyToken.Length; i++)
834 if (publicKeyToken[i] != publicKeyToken2[i])
843 [SecuritySafeCritical]
844 private string GetStringFromPRI(
string stringName,
string startingCulture,
string neutralResourcesCulture)
846 if (stringName.Length == 0)
851 return _WinRTResourceManager.GetString(stringName,
string.IsNullOrEmpty(startingCulture) ?
null : startingCulture,
string.IsNullOrEmpty(neutralResourcesCulture) ?
null : neutralResourcesCulture);
855 internal static WindowsRuntimeResourceManagerBase GetWinRTResourceManager()
857 Type type =
Type.GetType(
"System.Resources.WindowsRuntimeResourceManager, System.Runtime.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", throwOnError:
true);
858 return (WindowsRuntimeResourceManagerBase)Activator.CreateInstance(type, nonPublic:
true);
861 [SecuritySafeCritical]
862 private bool ShouldUseSatelliteAssemblyResourceLookupUnderAppX(RuntimeAssembly resourcesAssembly)
864 return resourcesAssembly.IsFrameworkAssembly();
867 [SecuritySafeCritical]
868 private void SetAppXConfiguration()
871 RuntimeAssembly runtimeAssembly = (RuntimeAssembly)
MainAssembly;
872 if (runtimeAssembly ==
null)
874 runtimeAssembly = m_callingAssembly;
876 if (!(runtimeAssembly !=
null) || !(runtimeAssembly != typeof(
object).Assembly) || !
AppDomain.IsAppXModel() ||
AppDomain.IsAppXNGen)
880 s_IsAppXModel =
true;
886 WindowsRuntimeResourceManagerBase windowsRuntimeResourceManagerBase =
null;
890 windowsRuntimeResourceManagerBase = GetWinRTResourceManager();
893 flag2 = windowsRuntimeResourceManagerBase.Initialize(runtimeAssembly.Location, text, out PRIExceptionInfo _);
909 _bUsingModernResourceManagement = !ShouldUseSatelliteAssemblyResourceLookupUnderAppX(runtimeAssembly);
910 if (_bUsingModernResourceManagement)
912 if (windowsRuntimeResourceManagerBase !=
null && flag2)
914 _WinRTResourceManager = windowsRuntimeResourceManagerBase;
915 _PRIonAppXInitialized =
true;
919 _WinRTResourceManager = GetWinRTResourceManager();
922 _PRIonAppXInitialized = _WinRTResourceManager.Initialize(runtimeAssembly.Location, text, out _PRIExceptionInfo);
927 catch (Exception ex3)
929 if (ex3.HResult != -2147009761)
945 [__DynamicallyInvokable]
959 [__DynamicallyInvokable]
970 if (_bUsingModernResourceManagement)
972 if (!_PRIonAppXInitialized)
974 if (_PRIExceptionInfo !=
null && _PRIExceptionInfo._PackageSimpleName !=
null && _PRIExceptionInfo._ResWFile !=
null)
980 return GetStringFromPRI(name, culture?.Name, _neutralResourcesCulture.
Name);
986 if (FrameworkEventSource.IsInitialized)
990 ResourceSet resourceSet = GetFirstResourceSet(culture);
991 if (resourceSet !=
null)
993 string @
string = resourceSet.
GetString(name, _ignoreCase);
999 ResourceFallbackManager resourceFallbackManager =
new ResourceFallbackManager(culture, _neutralResourcesCulture, useParents:
true);
1000 foreach (
CultureInfo item
in resourceFallbackManager)
1003 if (resourceSet2 ==
null)
1007 if (resourceSet2 != resourceSet)
1009 string string2 = resourceSet2.
GetString(name, _ignoreCase);
1010 if (string2 !=
null)
1012 if (_lastUsedResourceCache !=
null)
1014 lock (_lastUsedResourceCache)
1016 _lastUsedResourceCache.lastCultureName = item.Name;
1017 _lastUsedResourceCache.lastResourceSet = resourceSet2;
1022 resourceSet = resourceSet2;
1025 if (FrameworkEventSource.IsInitialized)
1040 return GetObject(name,
null, wrapUnmanagedMemStream:
true);
1052 return GetObject(name, culture, wrapUnmanagedMemStream:
true);
1065 if (culture ==
null)
1069 if (FrameworkEventSource.IsInitialized)
1073 ResourceSet resourceSet = GetFirstResourceSet(culture);
1074 if (resourceSet !=
null)
1076 object @
object = resourceSet.GetObject(name, _ignoreCase);
1077 if (@
object !=
null)
1080 if (unmanagedMemoryStream !=
null && wrapUnmanagedMemStream)
1082 return new UnmanagedMemoryStreamWrapper(unmanagedMemoryStream);
1087 ResourceFallbackManager resourceFallbackManager =
new ResourceFallbackManager(culture, _neutralResourcesCulture, useParents:
true);
1088 foreach (
CultureInfo item
in resourceFallbackManager)
1091 if (resourceSet2 ==
null)
1095 if (resourceSet2 != resourceSet)
1097 object object2 = resourceSet2.GetObject(name, _ignoreCase);
1098 if (object2 !=
null)
1100 if (_lastUsedResourceCache !=
null)
1102 lock (_lastUsedResourceCache)
1104 _lastUsedResourceCache.lastCultureName = item.Name;
1105 _lastUsedResourceCache.lastResourceSet = resourceSet2;
1109 if (unmanagedMemoryStream2 !=
null && wrapUnmanagedMemStream)
1111 return new UnmanagedMemoryStreamWrapper(unmanagedMemoryStream2);
1115 resourceSet = resourceSet2;
1118 if (FrameworkEventSource.IsInitialized)
1151 object @
object =
GetObject(name, culture, wrapUnmanagedMemStream:
false);
1153 if (unmanagedMemoryStream ==
null && @
object !=
null)
1157 return unmanagedMemoryStream;
1161 private bool TryLookingForSatellite(
CultureInfo lookForCulture)
1163 if (!_checkedConfigFile)
1167 if (!_checkedConfigFile)
1169 _checkedConfigFile =
true;
1170 _installedSatelliteInfo = GetSatelliteAssembliesFromConfig();
1174 if (_installedSatelliteInfo ==
null)
1183 int num = Array.IndexOf(array, lookForCulture.
Name);
1184 if (FrameworkEventSource.IsInitialized && FrameworkEventSource.Log.IsEnabled())
1199 private Hashtable GetSatelliteAssembliesFromConfig()
1201 string configurationFileInternal =
AppDomain.CurrentDomain.FusionStore.ConfigurationFileInternal;
1202 if (configurationFileInternal ==
null)
1210 ConfigTreeParser configTreeParser =
new ConfigTreeParser();
1211 string configPath =
"/configuration/satelliteassemblies";
1212 ConfigNode configNode =
null;
1215 configNode = configTreeParser.Parse(configurationFileInternal, configPath, skipSecurityStuff:
true);
1220 if (configNode ==
null)
1225 foreach (ConfigNode child
in configNode.Children)
1227 if (!
string.Equals(child.Name,
"assembly"))
1229 throw new ApplicationException(Environment.GetResourceString(
"XMLSyntax_InvalidSyntaxSatAssemTag",
Path.
GetFileName(configurationFileInternal), child.Name));
1231 if (child.Attributes.Count == 0)
1233 throw new ApplicationException(Environment.GetResourceString(
"XMLSyntax_InvalidSyntaxSatAssemTagNoAttr",
Path.
GetFileName(configurationFileInternal)));
1236 string text = (string)dictionaryEntry.
Value;
1237 if (!
object.Equals(dictionaryEntry.
Key,
"name") ||
string.IsNullOrEmpty(text) || child.Attributes.Count > 1)
1239 throw new ApplicationException(Environment.GetResourceString(
"XMLSyntax_InvalidSyntaxSatAssemTagBadAttr",
Path.
GetFileName(configurationFileInternal), dictionaryEntry.
Key, dictionaryEntry.
Value));
1242 foreach (ConfigNode child2
in child.Children)
1244 if (child2.Value !=
null)
1246 arrayList.
Add(child2.Value);
1249 string[] array =
new string[arrayList.
Count];
1250 for (
int i = 0; i < array.Length; i++)
1252 string cultureName = array[i] = (string)arrayList[i];
1253 if (FrameworkEventSource.IsInitialized)
1258 hashtable.
Add(text, array);
static Thread CurrentThread
Gets the currently running thread.
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
string BaseNameField
Specifies the root name of the resource files that the T:System.Resources.ResourceManager searches fo...
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
virtual void Add(object key, object value)
Adds an element with the specified key and value into the T:System.Collections.Hashtable.
bool MoveNext()
Advances the enumerator to the next element of the collection.
unsafe override string ToString()
Converts the value of this instance to a T:System.String.
virtual void ReleaseAllResources()
Tells the resource manager to call the M:System.Resources.ResourceSet.Close method on all T:System....
abstract string FullName
Gets the fully qualified name of the type, including its namespace but not its assembly.
virtual string FullName
Gets the display name of the assembly.
static Assembly GetCallingAssembly()
Returns the T:System.Reflection.Assembly of the method that invoked the currently executing method.
StringComparison
Specifies the culture, case, and sort rules to be used by certain overloads of the M:System....
virtual string GetString(string name, CultureInfo culture)
Returns the value of the string resource localized for the specified culture.
bool ContainsValue(TValue value)
Determines whether the T:System.Collections.Generic.Dictionary`2 contains a specific value.
virtual ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
Provides the implementation for finding a resource set.
virtual int Count
Gets the number of elements actually contained in the T:System.Collections.ArrayList.
ResourceManager(string baseName, Assembly assembly)
Initializes a new instance of the T:System.Resources.ResourceManager class that looks up resources co...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
Provides access to custom attribute data for assemblies, modules, types, members and parameters that ...
virtual string GetResourceFileName(CultureInfo culture)
Generates the name of the resource file for the given T:System.Globalization.CultureInfo object.
virtual string Name
Gets the culture name in the format languagecode2-country/regioncode2.
static IList< CustomAttributeData > GetCustomAttributes(MemberInfo target)
Returns a list of T:System.Reflection.CustomAttributeData objects representing data about the attribu...
Instructs a T:System.Resources.ResourceManager object to ask for a particular version of a satellite ...
static string GetFileName(string path)
Returns the file name and extension of the specified path string.
static readonly char DirectorySeparatorChar
Provides a platform-specific character used to separate directory levels in a path string that reflec...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
abstract string Namespace
Gets the namespace of the T:System.Type.
Represents a resource manager that provides convenient access to culture-specific resources at run ti...
virtual object [] GetCustomAttributes(bool inherit)
Gets all the custom attributes for this assembly.
virtual object GetObject(string name, CultureInfo culture)
Gets the value of the specified non-string resource localized for the specified culture.
static CultureInfo CurrentUICulture
Gets or sets the T:System.Globalization.CultureInfo object that represents the current user interface...
virtual bool IsSubclassOf(Type c)
Determines whether the current T:System.Type derives from the specified T:System.Type.
override string ToString()
Returns the full name of the assembly, also known as the display name.
Provides information about, and means to manipulate, the current environment and platform....
StringBuilder Append(char value, int repeatCount)
Appends a specified number of copies of the string representation of a Unicode character to this inst...
static ResourceManager CreateFileBasedResourceManager(string baseName, string resourceDir, Type usingResourceSet)
Returns a T:System.Resources.ResourceManager object that searches a specific directory instead of an ...
string Name
Gets or sets the simple name of the assembly. This is usually, but not necessarily,...
Finds or creates a T:System.AppDomain.
UltimateResourceFallbackLocation FallbackLocation
Gets or sets the location from which to retrieve default fallback resources.
Represents a collection of key/value pairs that are organized based on the hash code of the key....
static readonly int HeaderVersionNumber
Specifies the version of resource file headers that the current implementation of T:System....
CultureInfo CultureInfo
Gets or sets the culture supported by the assembly.
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
virtual Type ResourceSetType
Gets the type of the resource set object that the resource manager uses to construct a T:System....
virtual bool IgnoreCase
Gets or sets a value that indicates whether the resource manager allows case-insensitive resource loo...
virtual string GetString(string name)
Returns the value of the specified string resource.
abstract Assembly Assembly
Gets the T:System.Reflection.Assembly in which the type is declared. For generic types,...
Represents type declarations: class types, interface types, array types, value types,...
Represents the version number of an assembly, operating system, or the common language runtime....
UnmanagedMemoryStream GetStream(string name, CultureInfo culture)
Returns an unmanaged memory stream object from the specified resource, using the specified culture.
MethodImplOptions
Defines the details of how a method is implemented.
abstract string Name
Gets the name of the current member.
Enumerator GetEnumerator()
Returns an enumerator that iterates through the T:System.Collections.Generic.Dictionary`2.
UltimateResourceFallbackLocation
Specifies whether a T:System.Resources.ResourceManager object looks for the resources of the app's de...
Enumerates the resources in a binary resources (.resources) file by reading sequential resource name/...
Represents a mutable string of characters. This class cannot be inherited.To browse the ....
virtual int Add(object value)
Adds an object to the end of the T:System.Collections.ArrayList.
The exception that is thrown if the main assembly does not contain the resources for the neutral cult...
Represents a collection of keys and values.To browse the .NET Framework source code for this type,...
Describes an assembly's unique identity in full.
Type DeclaringType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
The exception that is thrown when one of the arguments provided to a method is not valid.
static Version GetSatelliteContractVersion(Assembly a)
Returns the version specified by the T:System.Resources.SatelliteContractVersionAttribute attribute i...
The exception that is thrown when an attempt to access a file that does not exist on disk fails.
virtual string GetString(string name)
Searches for a T:System.String resource with the specified name.
virtual ConstructorInfo Constructor
Gets a T:System.Reflection.ConstructorInfo object that represents the constructor that would have ini...
virtual object GetObject(string name)
Returns the value of the specified non-string resource.
object Value
Gets or sets the value in the key/value pair.
object Value
Gets the value of the current dictionary entry.
ResourceManager()
Initializes a new instance of the T:System.Resources.ResourceManager class with default values.
static readonly int MagicNumber
Holds the number used to identify resource files.
Specifies that the class can be serialized.
Stores all the resources localized for one particular culture, ignoring all other cultures,...
Enumerates the elements of a nongeneric dictionary.
virtual bool ReflectionOnly
Gets a T:System.Boolean value indicating whether this assembly was loaded into the reflection-only co...
The exception that is thrown when a method call is invalid for the object's current state.
Provides static methods for the creation, copying, deletion, moving, and opening of a single file,...
virtual int LCID
Gets the culture identifier for the current T:System.Globalization.CultureInfo.
void Add(TKey key, TValue value)
Adds the specified key and value to the dictionary.
object Key
Gets or sets the key in the key/value pair.
virtual string BaseName
Gets the root name of the resource files that the T:System.Resources.ResourceManager searches for res...
Provides access to unmanaged blocks of memory from managed code.
UnmanagedMemoryStream GetStream(string name)
Returns an unmanaged memory stream object from the specified resource.
Provides information about a specific culture (called a locale for unmanaged code development)....
virtual IList< CustomAttributeTypedArgument > ConstructorArguments
Gets the list of positional arguments specified for the attribute instance represented by the T:Syste...
static CultureInfo GetNeutralResourcesLanguage(Assembly a)
Returns culture-specific information for the main assembly's default resources by retrieving the valu...
virtual ResourceSet GetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
Retrieves the resource set for a particular culture.
ResourceManager(Type resourceSource)
Initializes a new instance of the T:System.Resources.ResourceManager class that looks up resources in...
Defines a dictionary key/value pair that can be set or retrieved.
Hashtable ResourceSets
Contains a T:System.Collections.Hashtable that returns a mapping from cultures to T:System....
Assembly MainAssembly
Specifies the main assembly that contains the resources.
bool TryGetValue(TKey key, out TValue value)
Gets the value associated with the specified key.
Performs operations on T:System.String instances that contain file or directory path information....
byte [] GetPublicKeyToken()
Gets the public key token, which is the last 8 bytes of the SHA-1 hash of the public key under which ...
ResourceManager(string baseName, Assembly assembly, Type usingResourceSet)
Initializes a new instance of the T:System.Resources.ResourceManager class that uses a specified T:Sy...
static readonly char VolumeSeparatorChar
Provides a platform-specific volume separator character.
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....
Creates and controls a thread, sets its priority, and gets its status.