Class OptionList
Represents a list that contains a collection of options.
public class OptionList
- Inheritance
-
OptionList
- Inherited Members
- Extension Methods
Properties
BgColor
public string? BgColor { get; set; }
Property Value
Color
public string? Color { get; set; }
Property Value
Description
public string? Description { get; set; }
Property Value
EndDate
public DateTime? EndDate { get; set; }
Property Value
IconCategory
public string? IconCategory { get; set; }
Property Value
IconColor
public string? IconColor { get; set; }
Property Value
IconDefault
public string? IconDefault { get; set; }
Property Value
Id
public ObjectId? Id { get; set; }
Property Value
- ObjectId?
InitDate
public DateTime? InitDate { get; set; }
Property Value
IsDefault
public bool? IsDefault { get; set; }
Property Value
- bool?
LocaleItems
public Locale? LocaleItems { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
OptionType
public string? OptionType { get; set; }
Property Value
Methods
AreEqual(OptionList, OptionList)
Compares two OptionList instances to determine whether they are equal by checking all of their properties, including type, name, icons, colors, dates, description, and default flag.
public bool AreEqual(OptionList a, OptionList b)
Parameters
aOptionListThe first OptionList to compare.
bOptionListThe second OptionList to compare.
Returns
- bool
trueif all compared properties of both OptionList instances are equal; otherwise,false.
AreEqualExcludeDescription(OptionList, OptionList)
Determines whether two OptionList instances are equal based on their core properties, excluding the Description field.
public bool AreEqualExcludeDescription(OptionList a, OptionList b)
Parameters
aOptionListThe first OptionList to compare.
bOptionListThe second OptionList to compare.
Returns
- bool
trueif both option lists match across OptionType, Name, IconDefault, IconCategory, IconColor, Color, BgColor, IsDefault, InitDate, and EndDate; otherwise,false.