AddMonoClass() public méthode

public AddMonoClass ( string className ) : void
className string
Résultat void
 public static void ResolveReferencedUnityEngineClassesFromMono(AssemblyDefinition[] assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         foreach (AssemblyDefinition definition in assemblies)
         {
             if (definition != unityEngine)
             {
                 IEnumerator <TypeReference> enumerator = definition.MainModule.GetTypeReferences().GetEnumerator();
                 try
                 {
                     while (enumerator.MoveNext())
                     {
                         TypeReference current = enumerator.Current;
                         if (current.Namespace.StartsWith("UnityEngine"))
                         {
                             string name = current.Name;
                             res.AddMonoClass(name);
                         }
                     }
                 }
                 finally
                 {
                     if (enumerator == null)
                     {
                     }
                     enumerator.Dispose();
                 }
             }
         }
     }
 }
 public static void ResolveReferencedUnityEngineClassesFromMono(AssemblyDefinition[] assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res)
 {
     if (res == null)
     {
         return;
     }
     foreach (AssemblyDefinition assembly in assemblies)
     {
         if (assembly != unityEngine)
         {
             using (IEnumerator <TypeReference> enumerator = assembly.get_MainModule().GetTypeReferences().GetEnumerator())
             {
                 while (((IEnumerator)enumerator).MoveNext())
                 {
                     TypeReference current = enumerator.Current;
                     if (current.get_Namespace().StartsWith("UnityEngine"))
                     {
                         string name = current.get_Name();
                         res.AddMonoClass(name);
                     }
                 }
             }
         }
     }
 }
Exemple #3
0
 public static void ResolveDefinedNativeClassesFromMono(AssemblyDefinition[] assemblies, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         foreach (AssemblyDefinition definition in assemblies)
         {
             foreach (TypeDefinition definition2 in definition.MainModule.Types)
             {
                 if (((definition2.Fields.Count > 0) || (definition2.Methods.Count > 0)) || (definition2.Properties.Count > 0))
                 {
                     string name = definition2.Name;
                     res.AddMonoClass(name);
                 }
             }
         }
     }
 }
Exemple #4
0
 public static void ResolveDefinedNativeClassesFromMono(AssemblyDefinition[] assemblies, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         for (int i = 0; i < assemblies.Length; i++)
         {
             AssemblyDefinition assemblyDefinition = assemblies[i];
             foreach (TypeDefinition current in assemblyDefinition.MainModule.Types)
             {
                 if (current.Fields.Count > 0 || current.Methods.Count > 0 || current.Properties.Count > 0)
                 {
                     string name = current.Name;
                     res.AddMonoClass(name);
                 }
             }
         }
     }
 }
Exemple #5
0
 public static void ResolveReferencedUnityEngineClassesFromMono(AssemblyDefinition[] assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         foreach (AssemblyDefinition definition in assemblies)
         {
             if (definition != unityEngine)
             {
                 foreach (TypeReference reference in definition.MainModule.GetTypeReferences())
                 {
                     if (reference.Namespace.StartsWith("UnityEngine"))
                     {
                         string name = reference.Name;
                         res.AddMonoClass(name);
                     }
                 }
             }
         }
     }
 }
Exemple #6
0
 public static void ResolveReferencedUnityEngineClassesFromMono(AssemblyDefinition[] assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         for (int i = 0; i < assemblies.Length; i++)
         {
             AssemblyDefinition assemblyDefinition = assemblies[i];
             if (assemblyDefinition != unityEngine)
             {
                 foreach (TypeReference current in assemblyDefinition.MainModule.GetTypeReferences())
                 {
                     if (current.Namespace.StartsWith("UnityEngine"))
                     {
                         string name = current.Name;
                         res.AddMonoClass(name);
                     }
                 }
             }
         }
     }
 }
 public static void ResolveDefinedNativeClassesFromMono(AssemblyDefinition[] assemblies, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         for (int i = 0; i < assemblies.Length; i++)
         {
             AssemblyDefinition assemblyDefinition = assemblies[i];
             using (Collection <TypeDefinition> .Enumerator enumerator = assemblyDefinition.get_MainModule().get_Types().GetEnumerator())
             {
                 while (enumerator.MoveNext())
                 {
                     TypeDefinition current = enumerator.get_Current();
                     if (current.get_Fields().get_Count() > 0 || current.get_Methods().get_Count() > 0 || current.get_Properties().get_Count() > 0)
                     {
                         string name = current.get_Name();
                         res.AddMonoClass(name);
                     }
                 }
             }
         }
     }
 }
 public static void ResolveDefinedNativeClassesFromMono(AssemblyDefinition[] assemblies, RuntimeClassRegistry res)
 {
     if (res == null)
     {
         return;
     }
     foreach (AssemblyDefinition assembly in assemblies)
     {
         using (Collection <TypeDefinition> .Enumerator enumerator = assembly.get_MainModule().get_Types().GetEnumerator())
         {
             // ISSUE: explicit reference operation
             while (((Collection <TypeDefinition> .Enumerator)@enumerator).MoveNext())
             {
                 // ISSUE: explicit reference operation
                 TypeDefinition current = ((Collection <TypeDefinition> .Enumerator)@enumerator).get_Current();
                 if (current.get_Fields().get_Count() > 0 || current.get_Methods().get_Count() > 0 || current.get_Properties().get_Count() > 0)
                 {
                     string name = ((TypeReference)current).get_Name();
                     res.AddMonoClass(name);
                 }
             }
         }
     }
 }
 public static void ResolveDefinedNativeClassesFromMono(AssemblyDefinition[] assemblies, RuntimeClassRegistry res)
 {
   if (res == null)
     return;
   foreach (AssemblyDefinition assembly in assemblies)
   {
     using (Collection<TypeDefinition>.Enumerator enumerator = assembly.get_MainModule().get_Types().GetEnumerator())
     {
       // ISSUE: explicit reference operation
       while (((Collection<TypeDefinition>.Enumerator) @enumerator).MoveNext())
       {
         // ISSUE: explicit reference operation
         TypeDefinition current = ((Collection<TypeDefinition>.Enumerator) @enumerator).get_Current();
         if (current.get_Fields().get_Count() > 0 || current.get_Methods().get_Count() > 0 || current.get_Properties().get_Count() > 0)
         {
           string name = ((TypeReference) current).get_Name();
           res.AddMonoClass(name);
         }
       }
     }
   }
 }
 public static void ResolveReferencedUnityEngineClassesFromMono(AssemblyDefinition[] assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res)
 {
   if (res == null)
     return;
   foreach (AssemblyDefinition assembly in assemblies)
   {
     if (assembly != unityEngine)
     {
       using (IEnumerator<TypeReference> enumerator = assembly.get_MainModule().GetTypeReferences().GetEnumerator())
       {
         while (((IEnumerator) enumerator).MoveNext())
         {
           TypeReference current = enumerator.Current;
           if (current.get_Namespace().StartsWith("UnityEngine"))
           {
             string name = current.get_Name();
             res.AddMonoClass(name);
           }
         }
       }
     }
   }
 }
 public static void ResolveReferencedUnityEngineClassesFromMono(AssemblyDefinition[] assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         foreach (AssemblyDefinition definition in assemblies)
         {
             if (definition != unityEngine)
             {
                 foreach (TypeReference reference in definition.MainModule.GetTypeReferences())
                 {
                     if (reference.Namespace.StartsWith("UnityEngine"))
                     {
                         string name = reference.Name;
                         res.AddMonoClass(name);
                     }
                 }
             }
         }
     }
 }
 public static void ResolveDefinedNativeClassesFromMono(AssemblyDefinition[] assemblies, RuntimeClassRegistry res)
 {
     if (res != null)
     {
         foreach (AssemblyDefinition definition in assemblies)
         {
             foreach (TypeDefinition definition2 in definition.MainModule.Types)
             {
                 if (((definition2.Fields.Count > 0) || (definition2.Methods.Count > 0)) || (definition2.Properties.Count > 0))
                 {
                     string name = definition2.Name;
                     res.AddMonoClass(name);
                 }
             }
         }
     }
 }
		public static void ResolveDefinedNativeClassesFromMono(AssemblyDefinition[] assemblies, RuntimeClassRegistry res)
		{
			if (res == null)
			{
				return;
			}
			for (int i = 0; i < assemblies.Length; i++)
			{
				AssemblyDefinition assemblyDefinition = assemblies[i];
				foreach (TypeDefinition current in assemblyDefinition.MainModule.Types)
				{
					if (current.Fields.Count > 0 || current.Methods.Count > 0 || current.Properties.Count > 0)
					{
						string name = current.Name;
						res.AddMonoClass(name);
					}
				}
			}
		}
		public static void ResolveReferencedUnityEngineClassesFromMono(AssemblyDefinition[] assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res)
		{
			if (res == null)
			{
				return;
			}
			for (int i = 0; i < assemblies.Length; i++)
			{
				AssemblyDefinition assemblyDefinition = assemblies[i];
				if (assemblyDefinition != unityEngine)
				{
					foreach (TypeReference current in assemblyDefinition.MainModule.GetTypeReferences())
					{
						if (current.Namespace.StartsWith("UnityEngine"))
						{
							string name = current.Name;
							res.AddMonoClass(name);
						}
					}
				}
			}
		}