Removed unnecessary casts

This commit is contained in:
Joshua Askharoun
2021-03-31 17:15:06 -05:00
parent f7d5fa4120
commit 9b09412b45
587 changed files with 7864 additions and 7862 deletions
+5 -5
View File
@@ -11,23 +11,23 @@ namespace Microsoft.Iris.Markup
private MarkupDataQuerySchema _owner;
public MarkupDataQuery(MarkupDataQuerySchema type)
: base((MarkupTypeSchema)type)
: base(type)
=> this._owner = type;
protected void ApplyDefaultValues()
{
Map map = (Map)null;
Map map = null;
for (MarkupDataQuerySchema owner = this._owner; owner != null; owner = owner.Base as MarkupDataQuerySchema)
{
foreach (MarkupDataQueryPropertySchema property in owner.Properties)
{
if (property.DefaultValue != null && (map == null || !map.ContainsKey((object)property.Name)))
if (property.DefaultValue != null && (map == null || !map.ContainsKey(property.Name)))
{
object instance = (object)this;
object instance = this;
property.SetValue(ref instance, property.DefaultValue);
if (map == null)
map = new Map();
map[(object)property.Name] = (object)null;
map[property.Name] = null;
}
}
}