Exemple #1
0
 /// <summary>
 /// Gets the <see cref="AssemblyData"/> instance containing the metadata for externally visible types and members of the specified <see cref="Assembly"/>.
 /// </summary>
 /// <param name="assembly">The Assembly for which the AssemblyData should be obtained.</param>
 /// <returns>The AssemblyData instance containing the metadata for externally visible types and members of the specified Assembly.</returns>
 public static AssemblyData FromAssembly(Assembly assembly)
 {
     return(AssemblyData.FromAssembly(assembly.ToAssemblyDefinition()));
 }
 /// <summary>
 /// Gets the derived <see cref="GenericTypeParameterData"/> instance representing the specified type.
 /// </summary>
 /// <returns>The derived <see cref="GenericTypeParameterData"/> instance.</returns>
 internal static GenericTypeParameterData FromType(GenericParameter t)
 {
     return(AssemblyData.FromAssembly(t.GetDeclaringAssembly()).GetGenericTypeParameterData(t));
 }