コード例 #1
0
ファイル: Collections.cs プロジェクト: Wiladams/NewTOAPIA
    public object Clone()
    {
        SdesPrivateExtensionHashtable clone = new SdesPrivateExtensionHashtable();

        foreach (DictionaryEntry de in h)
        {
            clone.Add((byte[])de.Key, (byte[])de.Value);
        }

        return clone;
    }
コード例 #2
0
ファイル: SdesData.cs プロジェクト: Wiladams/NewTOAPIA
        private void SetPrivateExtension(byte[] prefix, byte[] data)
        {
            // If the collection does not exist, create it
            if (privs == null)
            {
                //privs = new Dictionary<byte[], byte[]>();
                privs = new SdesPrivateExtensionHashtable();
            }

            // Set the value (this will add if it does not exist)
            privs[prefix] = data;
        }