BindingRedirect
Namespace: Dotsider.Core.Analysis.Models
Assembly: Dotsider.Core.dll
One <bindingRedirect> entry parsed from a .NET Framework configuration file
or a publisher-policy assembly’s embedded XML resource.
public sealed record BindingRedirect : IEquatable<BindingRedirect>Inheritance
Section titled “Inheritance”Object → BindingRedirect
Implements
Section titled “Implements”Constructors
Section titled “Constructors”BindingRedirect(PolicyLayer, string, string?, string, string?, Version, Version, Version)
Section titled “BindingRedirect(PolicyLayer, string, string?, string, string?, Version, Version, Version)”One <bindingRedirect> entry parsed from a .NET Framework configuration file
or a publisher-policy assembly’s embedded XML resource.
Parameters:
Source(PolicyLayer): Which policy layer this redirect came from.Name(String): Simple name of the redirected assembly.PublicKeyToken(String): Hex-string PKT, lower-cased; null for weak-named.Culture(String): Culture, defaulting to"neutral".ProcessorArchitecture(String):processorArchitectureattribute on<assemblyIdentity>, or null when unspecified (applies to any architecture).OldMin(Version): Inclusive lower bound of the redirected range.OldMax(Version): Inclusive upper bound of the redirected range.NewVersion(Version): The version the binder will use instead.
public BindingRedirect(PolicyLayer Source, string Name, string? PublicKeyToken, string Culture, string? ProcessorArchitecture, Version OldMin, Version OldMax, Version NewVersion)Properties
Section titled “Properties”Culture
Section titled “Culture”Culture, defaulting to "neutral".
Returns: String
public string Culture { get; init; }Simple name of the redirected assembly.
Returns: String
public string Name { get; init; }NewVersion
Section titled “NewVersion”The version the binder will use instead.
Returns: Version
public Version NewVersion { get; init; }OldMax
Section titled “OldMax”Inclusive upper bound of the redirected range.
Returns: Version
public Version OldMax { get; init; }OldMin
Section titled “OldMin”Inclusive lower bound of the redirected range.
Returns: Version
public Version OldMin { get; init; }ProcessorArchitecture
Section titled “ProcessorArchitecture”processorArchitecture attribute on <assemblyIdentity>, or
null when unspecified (applies to any architecture).
Returns: String
public string? ProcessorArchitecture { get; init; }PublicKeyToken
Section titled “PublicKeyToken”Hex-string PKT, lower-cased; null for weak-named.
Returns: String
public string? PublicKeyToken { get; init; }Source
Section titled “Source”Which policy layer this redirect came from.
Returns: PolicyLayer
public PolicyLayer Source { get; init; }Methods
Section titled “Methods”Deconstruct(out PolicyLayer, out string, out string?, out string, out string?, out Version, out Version, out Version)
Section titled “Deconstruct(out PolicyLayer, out string, out string?, out string, out string?, out Version, out Version, out Version)”Parameters:
Source(PolicyLayer)Name(String)PublicKeyToken(String)Culture(String)ProcessorArchitecture(String)OldMin(Version)OldMax(Version)NewVersion(Version)
public void Deconstruct(out PolicyLayer Source, out string Name, out string? PublicKeyToken, out string Culture, out string? ProcessorArchitecture, out Version OldMin, out Version OldMax, out Version NewVersion)Equals(BindingRedirect?)
Section titled “Equals(BindingRedirect?)”Parameters:
other(BindingRedirect)
Returns: Boolean
public bool Equals(BindingRedirect? other)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)GetHashCode()
Section titled “GetHashCode()”Returns: Int32
public override int GetHashCode()ToString()
Section titled “ToString()”Returns: String
public override string ToString()Members
Section titled “Members”operator !=(BindingRedirect?, BindingRedirect?)
Section titled “operator !=(BindingRedirect?, BindingRedirect?)”Parameters:
left(BindingRedirect)right(BindingRedirect)
Returns: Boolean
public static bool operator !=(BindingRedirect? left, BindingRedirect? right)operator ==(BindingRedirect?, BindingRedirect?)
Section titled “operator ==(BindingRedirect?, BindingRedirect?)”Parameters:
left(BindingRedirect)right(BindingRedirect)
Returns: Boolean
public static bool operator ==(BindingRedirect? left, BindingRedirect? right)