src/Misc/EFTools/XmlCore/Model/XmlModelProvider.cs
/// <summary>
///     This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
/// </summary>
/// <remarks>
///     Return the VisualStudio TextSpan object for the given xobject.  If the given xobject is null, this
///     will return a new TextSpan with values of 0.
///     Virtual to allow mocking.
/// </remarks>
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code .
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "This is a desirable name")]
        public virtual TextSpan GetTextSpanForXObject(XObject xobject, Uri uri)
        {
            Debug.Assert(uri != null, "uri != null");
            return xobject != null
                       ? GetXmlModel(uri).GetTextSpan(xobject)
                       : new TextSpan();
        }
[ SuppressMessage ( " " , " " , Justification = " " ) ] public virtual TextSpan GetTextSpanForXObject ( XObject xobject , Uri uri ) { Debug . Assert ( uri != null , " " ) ; return xobject != null ? GetXmlModel ( uri ) . GetTextSpan ( xobject ) : new TextSpan ( ) ; }
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code .
xobject
XObject
uri
Uri
remarks
Return the VisualStudio TextSpan object for the given xobject.  If the given xobject is null, this
will return a new TextSpan with values of 0.
Virtual to allow mocking.
Return the VisualStudio TextSpan object for the given xobject . If the given xobject is null this will return a new TextSpan with values of 0 . Virtual to allow mocking .