mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-23 07:14:57 +00:00
Convert ConfLocation fully over to properties
This commit is contained in:
@@ -153,6 +153,8 @@ namespace SabreTools.Data.Extensions
|
||||
return chip.Clone() as Chip;
|
||||
else if (self is Condition condition)
|
||||
return condition.Clone() as Condition;
|
||||
else if (self is ConfLocation confLocation)
|
||||
return confLocation.Clone() as ConfLocation;
|
||||
else if (self is Control control)
|
||||
return control.Clone() as Control;
|
||||
else if (self is DeviceRef deviceRef)
|
||||
@@ -192,10 +194,6 @@ namespace SabreTools.Data.Extensions
|
||||
cloneConfiguration.Mask = selfConfiguration.Mask;
|
||||
cloneConfiguration.Tag = selfConfiguration.Tag;
|
||||
}
|
||||
else if (self is ConfLocation selfConfLocation && clone is ConfLocation cloneConfLocation)
|
||||
{
|
||||
cloneConfLocation.Inverted = selfConfLocation.Inverted;
|
||||
}
|
||||
else if (self is ConfSetting selfConfSetting && clone is ConfSetting cloneConfSetting)
|
||||
{
|
||||
cloneConfSetting.Default = selfConfSetting.Default;
|
||||
|
||||
Reference in New Issue
Block a user