File: System\Xml\Linq\XHelper.cs | Web Access |
Project: src\src\libraries\System.Private.Xml.Linq\src\System.Private.Xml.Linq.csproj (System.Private.Xml.Linq) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Debug = System.Diagnostics.Debug; namespace System.Xml.Linq { internal static class XHelper { internal static bool IsInstanceOfType(object? o, Type type) { Debug.Assert(type != null); return o != null && type.IsAssignableFrom(o.GetType()); } } } |