Пример #1
0
 public static SerializableDocumentId Dehydrate(DocumentId id)
 {
     return(new SerializableDocumentId
     {
         ProjectId = SerializableProjectId.Dehydrate(id.ProjectId),
         Id = id.Id,
         DebugName = id.DebugName
     });
 }
Пример #2
0
 public static SerializableSymbolAndProjectId Dehydrate(
     SymbolAndProjectId symbolAndProjectId)
 {
     return(new SerializableSymbolAndProjectId
     {
         SymbolKeyData = symbolAndProjectId.Symbol.GetSymbolKey().ToString(),
         ProjectId = SerializableProjectId.Dehydrate(symbolAndProjectId.ProjectId)
     });
 }