RegisterAssembly() 공개 정적인 메소드

Registers all view model types in an assembly.
public static RegisterAssembly ( Assembly vmAssembly ) : void
vmAssembly System.Reflection.Assembly Assembly.
리턴 void
예제 #1
0
        /// <summary>
        /// Registers view model classes in the entry assembly.
        /// </summary>
        public void RegisterEntryAssembly()
        {
            var entryAssembly = Assembly.GetEntryAssembly();

            if (entryAssembly != null)
            {
                VMController.RegisterAssembly(entryAssembly);
            }
        }
예제 #2
0
 public void RegisterEntryAssembly() => VMController.RegisterAssembly(Assembly.GetEntryAssembly());
예제 #3
0
 public void RegisterAssembly(string assemblyName) => VMController.RegisterAssembly(Assembly.Load(new AssemblyName(assemblyName)));
예제 #4
0
 public void RegisterAssembly(Assembly assembly) => VMController.RegisterAssembly(assembly);
예제 #5
0
 /// <summary>
 /// Register view model classes in an assembly that are subtypes of a certain type.
 /// </summary>
 public void RegisterAssembly <T>(string assemblyName) where T : INotifyPropertyChanged => VMController.RegisterAssembly <T>(Assembly.Load(new AssemblyName(assemblyName)));
예제 #6
0
 /// <summary>
 /// Register view model classes in an assembly that are subtypes of a certain type.
 /// </summary>
 public void RegisterAssembly <T>(Assembly assembly) where T : INotifyPropertyChanged => VMController.RegisterAssembly <T>(assembly);