mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-18 06:05:00 +00:00
fix: Fixing dumb mistake with extension method resolution order
This commit is contained in:
@@ -27,19 +27,6 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
extends.WriteValue(name);
|
extends.WriteValue(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Writes a Type value.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="extends"></param>
|
|
||||||
/// <param name="value"></param>
|
|
||||||
public static void WriteValue(this JsonWriter extends, Type value)
|
|
||||||
{
|
|
||||||
if (extends == null)
|
|
||||||
throw new ArgumentNullException("extends");
|
|
||||||
|
|
||||||
extends.WriteType(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Writes the property name and value to the writer.
|
/// Writes the property name and value to the writer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -142,7 +129,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
throw new ArgumentNullException("extends");
|
throw new ArgumentNullException("extends");
|
||||||
|
|
||||||
extends.WritePropertyName(propertyName);
|
extends.WritePropertyName(propertyName);
|
||||||
extends.WriteValue(value);
|
extends.WriteType(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user