e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
// <copyright>
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace System.Activities.Debugger
|
|
{
|
|
public sealed class SourceLocationFoundEventArgs : EventArgs
|
|
{
|
|
private object target;
|
|
private SourceLocation sourceLocation;
|
|
private bool isValueNode;
|
|
|
|
public SourceLocationFoundEventArgs(object target, SourceLocation sourceLocation)
|
|
{
|
|
UnitTestUtility.Assert(target != null, "Target cannot be null and is ensured by caller");
|
|
UnitTestUtility.Assert(sourceLocation != null, "Target cannot be null and is ensured by caller");
|
|
this.target = target;
|
|
this.sourceLocation = sourceLocation;
|
|
}
|
|
|
|
internal SourceLocationFoundEventArgs(object target, SourceLocation sourceLocation, bool isValueNode)
|
|
: this(target, sourceLocation)
|
|
{
|
|
this.isValueNode = isValueNode;
|
|
}
|
|
|
|
public object Target
|
|
{
|
|
get { return this.target; }
|
|
}
|
|
|
|
public SourceLocation SourceLocation
|
|
{
|
|
get { return this.sourceLocation; }
|
|
}
|
|
|
|
internal bool IsValueNode
|
|
{
|
|
get { return this.isValueNode; }
|
|
}
|
|
}
|
|
}
|