private byte[] SerializeNodeLinks() { MemoryStream memoryStream = new MemoryStream(); NodeLink2.SerializeReferences(new GraphSerializationContext(new BinaryWriter(memoryStream))); return(memoryStream.ToArray()); }
byte[] SerializeNodeLinks() { var stream = new MemoryStream(); var writer = new BinaryWriter(stream); var ctx = new GraphSerializationContext(writer); NodeLink2.SerializeReferences(ctx); return(stream.ToArray()); }
private byte[] SerializeNodeLinks() { var stream = new MemoryStream(); #if !ASTAR_NO_LINKS var writer = new BinaryWriter(stream); var ctx = new GraphSerializationContext(writer); NodeLink2.SerializeReferences(ctx); #endif return(stream.ToArray()); }