Dereference() публичный Метод

Resolve the named object from the context bound to this reference.
public Dereference ( ) : object
Результат object
Пример #1
0
        public TupleValue(DataReference reference, int index)
        {
            var list = reference.Dereference();

            Source = list as ISource;

            Index = index;
        }
Пример #2
0
        public void ThenDerefernceMustResolveTheObject()
        {
            DataReference dataReference = new DataReference(Context, "testList");

            var deref = dataReference.Dereference();

            Assert.AreSame(deref, Context["testList"], "The context object was not resolved");
        }
Пример #3
0
 /// <summary>
 /// Initialise a new instance against a reference
 /// </summary>
 public When(DataReference reference, Op @operator, object rightHandSide)
     : this(reference.Dereference() as ISource, @operator, rightHandSide)
 {
 }
Пример #4
0
 /// <summary>
 /// Initialise against a reference
 /// </summary>
 public ListSequence(DataReference reference)
 {
     ListItems = reference.Dereference() as IList<object>;
 }
Пример #5
0
 public PadLeft(DataReference reference, int length, char character)
     : this(reference.Dereference() as ISource, length, character)
 {
 }
Пример #6
0
 /// <summary>
 /// Initialise against a reference
 /// </summary>
 public Substring(DataReference reference, int start, int? length = null)
     : this(reference.Dereference() as ISource, start, length)
 {
 }