The AssemblyName.Clone method is used to create a new instance of the AssemblyName class with the same properties as the original instance. This method is used when there is a need to create a copy of an existing AssemblyName object to use for comparison or modification.
In this example, the original assembly name is obtained using the Assembly.GetExecutingAssembly() method. The Clone method is then called on the original assembly name instance, creating a clone of the assembly name object. The cloned assembly name object is then cast to the AssemblyName class, and assigned to the clonedAssemblyName variable.
Package library: This method is part of the System.Reflection package library.
C# (CSharp) System.Reflection AssemblyName.Clone - 26 examples found. These are the top rated real world C# (CSharp) examples of System.Reflection.AssemblyName.Clone extracted from open source projects. You can rate examples to help us improve the quality of examples.