Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

54 lines
1.3 KiB
C#

namespace System.Workflow.ComponentModel.Compiler
{
using System;
#region BindValidationContext
[Flags]
[Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public enum AccessTypes
{
Read = 0x01,
Write = 0x02,
ReadWrite = Read | Write
}
[Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class BindValidationContext
{
private Type targetType = null;
private AccessTypes access = AccessTypes.Read;
public BindValidationContext(Type targetType)
: this(targetType, AccessTypes.Read)
{
}
public BindValidationContext(Type targetType, AccessTypes access)
{
if (targetType == null)
throw new ArgumentNullException("targetType");
this.targetType = targetType;
this.access = access;
}
public Type TargetType
{
get
{
return this.targetType;
}
}
public AccessTypes Access
{
get
{
return this.access;
}
}
}
#endregion
}