public void Serialize(Stream stream, CompilerBuildCache buildCache)
 {
     using (var sw = new StreamWriter(stream))
         using (var writer = new JsonTextWriter(sw))
         {
             _serializer.Serialize(writer, buildCache);
         }
 }
Example #2
0
 /// <summary>
 /// </summary>
 protected bool Equals(CompilerBuildCache other)
 {
     return(string.Equals(Version, other.Version) && string.Equals(BuildConfiguration, other.BuildConfiguration) &&
            SetEquals(Dependencies, other.Dependencies) &&
            SetEquals(SourceFiles, other.SourceFiles));
 }
 public void Serialize(Stream stream, CompilerBuildCache buildCache)
 {
     _serializer.Serialize(stream, buildCache);
 }