public static void CheckScriptOwnership(this IScriptPrivateResource containingResource, DynValue value) { var otherResource = value?.GetAsPrivateResource(); if (otherResource != null) { CheckScriptOwnership(containingResource, otherResource); } }
public static void CheckScriptOwnership(this IScriptPrivateResource containingResource, DynValue value) { if (value != null) { var otherResource = value.GetAsPrivateResource(); if (otherResource != null) { CheckScriptOwnership(containingResource, otherResource); } } }