CP-36392: Make type field readonly in QueryElement.cs

field is used in `GetHashCode`

Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
This commit is contained in:
Danilo Del Busso 2021-11-15 09:46:12 +00:00
parent 494f78966d
commit 396bcb0e35
No known key found for this signature in database
GPG Key ID: 0C48542619080FD4

View File

@ -1080,7 +1080,7 @@ namespace XenAdmin.Controls.XenSearch
public class ExtraComboEntry
{
public StringPropertyQuery.PropertyQueryType type;
public readonly StringPropertyQuery.PropertyQueryType type;
public ExtraComboEntry(StringPropertyQuery.PropertyQueryType type)
{
this.type = type;