The usage of this attribute is when you want to save properties with different name.
When you want to log object properties with different name you can use this attribute.
For example, you have a class that has a MessageType property but you want to log MessageType data with "mt" to reduce log file size.
You can use:
class Message
{
[LogWithName("mt")]
public int MessageType
{
get;
set;
}
}
The usage of this attribute is when you want to save properties with different name.
When you want to log object properties with different name you can use this attribute. For example, you have a class that has a MessageType property but you want to log MessageType data with "mt" to reduce log file size.
You can use: