Dereference() public method

Resolve the named object from the context bound to this reference.
public Dereference ( ) : object
return object
Beispiel #1
0
        public TupleValue(DataReference reference, int index)
        {
            var list = reference.Dereference();

            Source = list as ISource;

            Index = index;
        }
        public void ThenDerefernceMustResolveTheObject()
        {
            DataReference dataReference = new DataReference(Context, "testList");

            var deref = dataReference.Dereference();

            Assert.AreSame(deref, Context["testList"], "The context object was not resolved");
        }
Beispiel #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)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Initialise against a reference
 /// </summary>
 public ListSequence(DataReference reference)
 {
     ListItems = reference.Dereference() as IList<object>;
 }
Beispiel #5
0
 public PadLeft(DataReference reference, int length, char character)
     : this(reference.Dereference() as ISource, length, character)
 {
 }
Beispiel #6
0
 /// <summary>
 /// Initialise against a reference
 /// </summary>
 public Substring(DataReference reference, int start, int? length = null)
     : this(reference.Dereference() as ISource, start, length)
 {
 }