Internationalization and localization tools


Culture-Sensitive C# Method

using System

public ObjectHandle CreateInstanceFrom(string assemblyName, string typeName);

public ObjectHandle CreateInstanceFrom(string assemblyName, string typeName, Object[] activationAttributes);

public ObjectHandle CreateInstanceFrom(string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes);

Internationalization (I18n) Method Overview

The CreateInstanceFrom method creates a new instance of the type whose name is specified, using the named assembly file and the constructor that best matches the arguments. Classes Activator and AppDomain support this method.

See Microsoft's MSDN online documentation for more information.

I18n Issues

The method CreateInstanceFrom should be passed a CultureInfo argument to ensure that any culture-sensitive arguments, such as dates or numbers, are interpreted properly.

Culture and Number Format Information

 

Lingoport internationalization and localization services and software