Ipfs.Api.MerkleNode.MerkleNode C# (CSharp) Method

MerkleNode() public method

Creates a new instance of the MerkleNode with the specified Hash">multihash and optional
public MerkleNode ( string hash, string name = null ) : System
hash string /// The Base58 hash of the node or "/ipfs/hash". ///
name string
return System
        public MerkleNode(string hash, string name = null)
        {
            if (string.IsNullOrWhiteSpace(hash))
                throw new ArgumentNullException("hash");

            if (hash.StartsWith("/ipfs/"))
                hash = hash.Substring(6);

            Hash = hash;
            Name = name;
        }