Esempio n. 1
0
        ILeaf IDirectory.Add(string name, string description, byte[] data, string ext)
        {
            Contains(name);
            ISingleResult <InsertBinaryResult> r =
                Context.InsertBinary(Id, name, description, data, 0, ext);
            Guid        id = r.ElementAt <InsertBinaryResult>(0).Id;
            BinaryTable bt = new BinaryTable(id, this, name, description, ext);

            bt.BinaryTree = this;
            BinaryTables.Add(bt);
            return(bt);
        }
Esempio n. 2
0
 IEnumerator <ILeaf> IEnumerable <ILeaf> .GetEnumerator()
 {
     return(BinaryTables.Cast <ILeaf>().GetEnumerator());
 }