private ICmObject RealKeyObject() { var temp = m_item.GetObject(m_repo); m_item = temp; // locking not needed, all threads will update to same thing return(temp); }
public LazyManyOnePathSortItem(string persistInfo, ICmObjectRepository repo) { m_repo = repo; var chunks = persistInfo.Split(';'); m_item = ParseGuidRep(repo, chunks[0]); if (chunks.Length > 1) { var pathLen = chunks.Length / 2; m_pathObjects = new ICmObjectOrId[pathLen]; m_pathFlids = new int[pathLen]; for (int i = 0; i < pathLen; i++) { m_pathFlids[i] = int.Parse(chunks[i * 2 + 1]); m_pathObjects[i] = ParseGuidRep(repo, chunks[i * 2 + 2]); } } }
private string PersistGuid(ICmObjectOrId item) { return(Convert.ToBase64String(item.Id.Guid.ToByteArray())); }
private ICmObject RealKeyObject() { var temp = m_item.GetObject(m_repo); m_item = temp; // locking not needed, all threads will update to same thing return temp; }
private string PersistGuid(ICmObjectOrId item) { return Convert.ToBase64String(item.Id.Guid.ToByteArray()); }
public LazyManyOnePathSortItem(string persistInfo, ICmObjectRepository repo) { m_repo = repo; var chunks = persistInfo.Split(';'); m_item = ParseGuidRep(repo, chunks[0]); if (chunks.Length > 1) { var pathLen = chunks.Length/2; m_pathObjects = new ICmObjectOrId[pathLen]; m_pathFlids = new int[pathLen]; for (int i = 0; i < pathLen; i++) { m_pathFlids[i] = int.Parse(chunks[i*2 + 1]); m_pathObjects[i] = ParseGuidRep(repo, chunks[i * 2 + 2]); } } }