|
//------------------------------------------------------------------------------
//
// <copyright file="XamlSourceInfo.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved.
// </copyright>
//
// Description:
// Defines XAML source info.
//
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace System.Windows.Diagnostics
{
[DebuggerDisplay("{line={LineNumber}, offset={LinePosition}, uri={SourceUri}}")]
public class XamlSourceInfo
{
/// <summary>
/// Source URI.
/// </summary>
public Uri SourceUri { get; private set; }
/// <summary>
/// Line within source file.
/// </summary>
public int LineNumber { get; private set; }
/// <summary>
/// Position within line.
/// </summary>
public int LinePosition { get; private set; }
public XamlSourceInfo(Uri sourceUri, int lineNumber, int linePosition)
{
SourceUri = sourceUri;
LineNumber = lineNumber;
LinePosition = linePosition;
}
}
}
|