コード例 #1
0
 private bool SetupStrings()
 {
     if (_strings == null)
     {
         _strings = new DynamicClassSetup
         {
             Assembly = Path.Combine(AssemblyPath, "InMemoryLoaderCommon.Strings.dll"),
             Class    = "Strings"
         };
     }
     if (!Components.Contains(_strings))
     {
         Components.Add(_strings);
     }
     return(true);
 }
コード例 #2
0
 private bool SetupConverter()
 {
     if (_converter == null)
     {
         _converter = new DynamicClassSetup
         {
             Assembly = Path.Combine(AssemblyPath, "InMemoryLoaderCommon.Converter.dll"),
             Class    = "Converter"
         };
     }
     if (!Components.Contains(_converter))
     {
         Components.Add(_converter);
     }
     return(true);
 }
コード例 #3
0
 private bool SetupCrypt()
 {
     if (_crypt == null)
     {
         _crypt = new DynamicClassSetup
         {
             Assembly = Path.Combine(AssemblyPath, "InMemoryLoaderCommon.Crypt.dll"),
             Class    = "Crypt"
         };
     }
     if (!Components.Contains(_crypt))
     {
         Components.Add(_crypt);
     }
     return(true);
 }