internal static SourceGeneratedDocumentIdentity ReadFrom(ObjectReader reader)
        {
            var documentId = DocumentId.ReadFrom(reader);

            var hintName = reader.ReadString();
            var generatorAssemblyName = reader.ReadString();
            var generatorTypeName     = reader.ReadString();
            var filePath = reader.ReadString();

            return(new SourceGeneratedDocumentIdentity(documentId, hintName, generatorAssemblyName, generatorTypeName, filePath));
        }
Beispiel #2
0
            public static DocumentAttributes ReadFrom(ObjectReader reader)
            {
                var documentId = DocumentId.ReadFrom(reader);

                var name           = reader.ReadString();
                var folders        = (string[])reader.ReadValue();
                var sourceCodeKind = reader.ReadInt32();
                var filePath       = reader.ReadString();
                var isGenerated    = reader.ReadBoolean();

                return(new DocumentAttributes(documentId, name, folders, (SourceCodeKind)sourceCodeKind, filePath, isGenerated));
            }