4 types derived from BindingRestrictions
System.Core (4)
Microsoft\Scripting\Actions\BindingRestrictions.cs (4)
213
private sealed class MergedRestriction :
BindingRestrictions
{
226
private sealed class CustomRestriction :
BindingRestrictions
{
247
private sealed class TypeRestriction :
BindingRestrictions
{
270
private sealed class InstanceRestriction :
BindingRestrictions
{
60 references to BindingRestrictions
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (3)
530
: base(parameter,
BindingRestrictions
.Empty, target)
538
return new DynamicMetaObject(value,
BindingRestrictions
.GetTypeRestriction(this.Expression, this.LimitType));
546
return new DynamicMetaObject(valueExp,
BindingRestrictions
.GetTypeRestriction(this.Expression, this.LimitType));
System.Core (54)
Microsoft\Scripting\Actions\BindingRestrictions.cs (27)
41
public static readonly
BindingRestrictions
Empty = new CustomRestriction(Expression.Constant(true));
58
public
BindingRestrictions
Merge(
BindingRestrictions
restrictions) {
75
public static
BindingRestrictions
GetTypeRestriction(Expression expression, Type type) {
86
internal static
BindingRestrictions
GetTypeRestriction(DynamicMetaObject obj) {
88
return
BindingRestrictions
.GetInstanceRestriction(obj.Expression, null);
90
return
BindingRestrictions
.GetTypeRestriction(obj.Expression, obj.LimitType);
100
public static
BindingRestrictions
GetInstanceRestriction(Expression expression, object instance) {
115
public static
BindingRestrictions
GetExpressionRestriction(Expression expression) {
126
public static
BindingRestrictions
Combine(IList<DynamicMetaObject> contributingObjects) {
127
BindingRestrictions
res =
BindingRestrictions
.Empty;
144
private readonly Set<
BindingRestrictions
> _unique = new Set<
BindingRestrictions
>();
152
internal void Append(
BindingRestrictions
restrictions) {
197
var stack = new Stack<
BindingRestrictions
>();
200
var
top = stack.Pop();
214
internal readonly
BindingRestrictions
Left;
215
internal readonly
BindingRestrictions
Right;
217
internal MergedRestriction(
BindingRestrictions
left,
BindingRestrictions
right) {
323
private readonly
BindingRestrictions
_node;
325
public BindingRestrictionsProxy(
BindingRestrictions
node) {
337
public
BindingRestrictions
[] Restrictions {
339
var restrictions = new List<
BindingRestrictions
>();
345
var stack = new Stack<
BindingRestrictions
>();
348
var
top = stack.Pop();
Microsoft\Scripting\Actions\DynamicMetaObject.cs (5)
38
private readonly
BindingRestrictions
_restrictions;
53
public DynamicMetaObject(Expression expression,
BindingRestrictions
restrictions) {
67
public DynamicMetaObject(Expression expression,
BindingRestrictions
restrictions, object value)
85
public
BindingRestrictions
Restrictions {
330
return new DynamicMetaObject(expression,
BindingRestrictions
.Empty, value);
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (11)
114
BindingRestrictions
restrictions = binding.Restrictions;
135
if (restrictions ==
BindingRestrictions
.Empty) {
148
if (restrictions !=
BindingRestrictions
.Empty) {
168
private static
BindingRestrictions
AddRemoteObjectRestrictions(
BindingRestrictions
restrictions, object[] args, ReadOnlyCollection<ParameterExpression> parameters) {
179
BindingRestrictions
remotedRestriction;
181
remotedRestriction =
BindingRestrictions
.GetExpressionRestriction(
191
remotedRestriction =
BindingRestrictions
.GetExpressionRestriction(
245
target.Restrictions.Merge(
BindingRestrictions
.Combine(args)),
257
return MakeDeferred(
BindingRestrictions
.Combine(args), args);
260
private DynamicMetaObject MakeDeferred(
BindingRestrictions
rs, params DynamicMetaObject[] args) {
Microsoft\Scripting\Actions\DynamicObject.cs (5)
231
: base(expression,
BindingRestrictions
.Empty, value) {
488
var resultMO = new DynamicMetaObject(result,
BindingRestrictions
.Empty);
729
private
BindingRestrictions
GetRestrictions() {
730
Debug.Assert(Restrictions ==
BindingRestrictions
.Empty, "We don't merge, restrictions are always empty");
732
return
BindingRestrictions
.GetTypeRestriction(this);
Microsoft\Scripting\Actions\ExpandoObject.cs (6)
688
: base(expression,
BindingRestrictions
.Empty, value) {
709
var result = new DynamicMetaObject(value,
BindingRestrictions
.Empty);
775
BindingRestrictions
.Empty
897
private
BindingRestrictions
GetRestrictions() {
898
Debug.Assert(Restrictions ==
BindingRestrictions
.Empty, "We don't merge, restrictions are always empty");
900
return
BindingRestrictions
.GetTypeRestriction(this);
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (3)
530
: base(parameter,
BindingRestrictions
.Empty, target)
538
return new DynamicMetaObject(value,
BindingRestrictions
.GetTypeRestriction(this.Expression, this.LimitType));
546
return new DynamicMetaObject(valueExp,
BindingRestrictions
.GetTypeRestriction(this.Expression, this.LimitType));