53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
|
//-----------------------------------------------------------------------------
|
|||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
|
|||
|
namespace System.Activities.XamlIntegration
|
|||
|
{
|
|||
|
using System;
|
|||
|
using System.Activities;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Collections.ObjectModel;
|
|||
|
|
|||
|
public class TextExpressionCompilerResults
|
|||
|
{
|
|||
|
ReadOnlyCollection<TextExpressionCompilerError> messages;
|
|||
|
|
|||
|
internal TextExpressionCompilerResults()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public Type ResultType
|
|||
|
{
|
|||
|
get;
|
|||
|
internal set;
|
|||
|
}
|
|||
|
|
|||
|
public bool HasErrors
|
|||
|
{
|
|||
|
get;
|
|||
|
internal set;
|
|||
|
}
|
|||
|
|
|||
|
public bool HasSourceInfo
|
|||
|
{
|
|||
|
get;
|
|||
|
internal set;
|
|||
|
}
|
|||
|
|
|||
|
public ReadOnlyCollection<TextExpressionCompilerError> CompilerMessages
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return this.messages;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
internal void SetMessages(IList<TextExpressionCompilerError> messages, bool hasErrors)
|
|||
|
{
|
|||
|
this.messages = new ReadOnlyCollection<TextExpressionCompilerError>(messages);
|
|||
|
this.HasErrors = hasErrors;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|