C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
PropertyAlias.cs
Go to the documentation of this file.
1using System;
2
4{
6 [AttributeUsage(AttributeTargets.Property)]
7 public class PropertyAlias : Attribute
8 {
10 public string[] Aliases { get; }
11
14 public PropertyAlias(string propertyAlias)
15 {
16 Aliases = new[] { propertyAlias };
17 }
20 public PropertyAlias(string[] propertyAliases)
21 {
22 Aliases = propertyAliases;
23 }
24 }
25}
Specifies one or more aliases to be used as synonyms for the property's name.
string[] Aliases
The aliases associated with this property.
PropertyAlias(string[] propertyAliases)
Provide the property with a list of aliases.
PropertyAlias(string propertyAlias)
Provide the property with a single alias.