Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssemblyRegisteredEventArgs.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using System.Reflection;
6 
7 namespace SiliconStudio.Core.Reflection
8 {
9  /// <summary>
10  /// An event occuring when an assembly is registered with <see cref="AssemblyRegistry"/>.
11  /// </summary>
13  {
14  /// <summary>
15  /// Initializes a new instance of the <see cref="AssemblyRegisteredEventArgs"/> class.
16  /// </summary>
17  /// <param name="assembly">The assembly.</param>
18  /// <param name="categories">The categories.</param>
19  public AssemblyRegisteredEventArgs(Assembly assembly, HashSet<string> categories)
20  {
21  if (assembly == null) throw new ArgumentNullException("assembly");
22  if (categories == null) throw new ArgumentNullException("categories");
23  Assembly = assembly;
24  Categories = categories;
25  }
26 
27  /// <summary>
28  /// Gets the assembly that has been registered.
29  /// </summary>
30  /// <value>The assembly.</value>
31  public Assembly Assembly { get; private set; }
32 
33  /// <summary>
34  /// Gets the new categories registered for the specified <see cref="Assembly"/>
35  /// </summary>
36  /// <value>The categories.</value>
37  public HashSet<string> Categories { get; private set; }
38  }
39 }
AssemblyRegisteredEventArgs(Assembly assembly, HashSet< string > categories)
Initializes a new instance of the AssemblyRegisteredEventArgs class.
An event occuring when an assembly is registered with AssemblyRegistry.