public static SerializableDocumentId Dehydrate(DocumentId id) { return(new SerializableDocumentId { ProjectId = SerializableProjectId.Dehydrate(id.ProjectId), Id = id.Id, DebugName = id.DebugName }); }
public static SerializableSymbolAndProjectId Dehydrate( SymbolAndProjectId symbolAndProjectId) { return(new SerializableSymbolAndProjectId { SymbolKeyData = symbolAndProjectId.Symbol.GetSymbolKey().ToString(), ProjectId = SerializableProjectId.Dehydrate(symbolAndProjectId.ProjectId) }); }