iTween.Hash C# (CSharp) Method

Hash() public static method

Universal interface to help in the creation of Hashtables. Especially useful for C# users.
public static Hash ( ) : Hashtable
return Hashtable
    public static Hashtable Hash(params object[] args)
    {
        Hashtable hashTable = new Hashtable(args.Length/2);
        if (args.Length %2 != 0) {
            Debug.LogError("Tween Error: Hash requires an even number of arguments!");
            return null;
        }else{
            int i = 0;
            while(i < args.Length - 1) {
                hashTable.Add(args[i], args[i+1]);
                i += 2;
            }
            return hashTable;
        }
    }
iTween