6 implementations of IObjectWritable
Microsoft.CodeAnalysis.CodeStyle (6)
DiagnosticHelper.cs (1)
279public sealed class LocalizableStringWithArguments : LocalizableString, IObjectWritable
NamingStyle.cs (1)
24internal readonly partial record struct NamingStyle : IObjectWritable
SerializableNamingRule.cs (1)
15internal sealed record class SerializableNamingRule : IObjectWritable
SymbolSpecification.cs (3)
28internal sealed class SymbolSpecification : IEquatable<SymbolSpecification>, IObjectWritable 354public readonly record struct SymbolKindOrTypeKind : ISymbolMatcher, IObjectWritable 470public readonly struct ModifierKind : ISymbolMatcher, IEquatable<ModifierKind>, IObjectWritable
15 references to IObjectWritable
Microsoft.CodeAnalysis.CodeStyle (15)
DiagnosticHelper.cs (2)
328bool IObjectWritable.ShouldReuseInSerialization => false; 330void IObjectWritable.WriteTo(ObjectWriter writer)
ObjectBinder.cs (2)
39private static readonly List<Func<ObjectReader, IObjectWritable>> s_typeReaders = new(); 58public static void RegisterTypeReader(Type type, Func<ObjectReader, IObjectWritable> typeReader)
ObjectBinderSnapshot.cs (3)
17private readonly ImmutableArray<Func<ObjectReader, IObjectWritable>> _typeReaders; 22List<Func<ObjectReader, IObjectWritable>> typeReaders) 35public Func<ObjectReader, IObjectWritable> GetTypeReaderFromId(int typeId)
ObjectReader.cs (1)
679var instance = typeReader(this);
ObjectWriter.cs (7)
324public void WriteValue(IObjectWritable? value) 820private void WriteObject(object instance, IObjectWritable? instanceAsWritable) 849var writable = instanceAsWritable; 852writable = instance as IObjectWritable; 855throw NoSerializationWriterException($"{instance.GetType()} must implement {nameof(IObjectWritable)}"); 871WriteObjectWorker((IObjectWritable)obj!); 895private void WriteObjectWorker(IObjectWritable writable)