Give Message a public getter but protected setter, so that only subclasses (and the DataContractSerializer, because it cheats 🙂 may modify the value.
More Related Contents:
- how to provide value to parent class constructor where parent constructor have more argument than child class from static void main in c#? [closed]
- Passing properties by reference in C#
- Dynamically Add C# Properties at Runtime
- Property(with no extra processing) vs public field [duplicate]
- DataContract XML serialization and XML attributes
- How do I iterate over the properties of an anonymous object in C#?
- Understanding WCF Windows Authentication
- How to make a call to my WCF service asynchronous?
- How to check whether an object has certain method/property?
- How do I automatically display all properties of a class and their values in a string? [duplicate]
- Does java have something similar to C# properties? [duplicate]
- Different forms of the WCF service contract interface
- how to generate a unique token which expires after 24 hours?
- Are get and set functions popular with C++ programmers?
- When to use properties instead of functions
- .NET DefaultValue attribute
- Why we need Properties in C#
- Overriding fields or properties in subclasses
- CORS Support within WCF REST Services
- WCF error : 405 Method Not Allowed
- Extracting Windows File Properties (Custom Properties) C#
- WCF HttpTransport: streamed vs buffered TransferMode
- What is difference between Init-Only and ReadOnly in C# 9?
- Easy creation of properties that support indexing in C#
- Write-Only properties, what’s the point? [duplicate]
- Method vs Property in C# – what’s the difference [duplicate]
- Why are public fields faster than properties?
- How do I prevent a WCF service from enter a faulted state?
- System.ServiceModel not found in .NET Core project
- Could not find a base address that matches scheme net.tcp