private void LoadConversionClass() { string typeName = (string.IsNullOrEmpty(RootNamespace) ? "" : RootNamespace + ".") + CONVERSION_TYPE_NAME; try { Type conversionType = Assembly.GetType(typeName); if (conversionType != null) { Conversion = (MyBaseConversion)Activator.CreateInstance(conversionType); Conversion.Module = this; } } catch { Conversion = null; } }
private void LoadConversionClass() { string typeName = RootNamespace + "." + CONVERSION_TYPE_NAME; try { Type conversionType = Assembly.GetType(typeName); if (conversionType != null) { Conversion = (MyBaseConversion)Activator.CreateInstance(conversionType); Conversion.Module = this; } } catch { Conversion = null; } if (Conversion == null) { MyLog.WARNING.WriteLine("Can't load version (looking for type {0}).", typeName); } }