public StorageObjectID this[string key] {
                get {
                    foreach (var kvp in graph.Outgoing(id))
                    {
                        if (kvp.Key == key)
                        {
                            return(kvp.Value);
                        }
                    }

                    throw new KeyNotFoundException();
                }
            }
Example #2
0
 public StorageObjectID this[string key] {
     get {
         return(graph.Outgoing(ID).First(_ => _.Key == key).Value);
     }
 }