1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
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
}
|