Show / Hide Table of Contents

Class InfoHash

Inheritance
System.Object
InfoHash
Implements
System.IEquatable<InfoHash>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MonoTorrent
Assembly: MonoTorrent.dll
Syntax
public class InfoHash : IEquatable<InfoHash>

Constructors

InfoHash(Byte[])

Declaration
public InfoHash(byte[] infoHash)
Parameters
Type Name Description
System.Byte[] infoHash

Methods

Equals(InfoHash)

Declaration
public bool Equals(InfoHash other)
Parameters
Type Name Description
InfoHash other
Returns
Type Description
System.Boolean

Equals(Byte[])

Declaration
public bool Equals(byte[] other)
Parameters
Type Name Description
System.Byte[] other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

FromBase32(String)

Declaration
public static InfoHash FromBase32(string infoHash)
Parameters
Type Name Description
System.String infoHash
Returns
Type Description
InfoHash

FromHex(String)

Declaration
public static InfoHash FromHex(string infoHash)
Parameters
Type Name Description
System.String infoHash
Returns
Type Description
InfoHash

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

ToArray()

Declaration
public byte[] ToArray()
Returns
Type Description
System.Byte[]

ToHex()

Declaration
public string ToHex()
Returns
Type Description
System.String

UrlDecode(String)

Declaration
public static InfoHash UrlDecode(string infoHash)
Parameters
Type Name Description
System.String infoHash
Returns
Type Description
InfoHash

UrlEncode()

Declaration
public string UrlEncode()
Returns
Type Description
System.String

Operators

Equality(InfoHash, InfoHash)

Declaration
public static bool operator ==(InfoHash left, InfoHash right)
Parameters
Type Name Description
InfoHash left
InfoHash right
Returns
Type Description
System.Boolean

Inequality(InfoHash, InfoHash)

Declaration
public static bool operator !=(InfoHash left, InfoHash right)
Parameters
Type Name Description
InfoHash left
InfoHash right
Returns
Type Description
System.Boolean

Implements

System.IEquatable<T>
In This Article
Back to top Generated by DocFX