/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.AssemblyName" /> class with the specified display name.</summary> /// <param name="assemblyName">The display name of the assembly, as returned by the <see cref="P:System.Reflection.AssemblyName.FullName" /> property.</param> /// <exception cref="T:System.ArgumentNullException"> /// <paramref name="assemblyName" /> is null.</exception> /// <exception cref="T:System.ArgumentException"> /// <paramref name="assemblyName" /> is a zero length string.</exception> public AssemblyName(string assemblyName) { if (assemblyName == null) { throw new ArgumentNullException("assemblyName"); } if (assemblyName.Length < 1) { throw new ArgumentException("assemblyName cannot have zero length."); } if (!AssemblyName.ParseName(this, assemblyName)) { throw new FileLoadException("The assembly name is invalid."); } }