Exemplo n.º 1
0
 public void updateValue(DataLinks dl)
 {
     if (field == null)
     {
         reflectiveUpdate(dl);
     }
     else
     {
         value = field.GetValue(null);
     }
 }
Exemplo n.º 2
0
        private void reflectiveUpdate(DataLinks dl)
        {
            String[] argsSplit = key.Split('.');
            Type type = dl.GetType();
            value = dl;

            foreach(String s in argsSplit)
            {
                field = type.GetField(s);
                value = field.GetValue(value);

                type = value.GetType();
            }
        }
Exemplo n.º 3
0
 public DataLinkResponsibility(DataLinks dataLinks)
 {
     this.dataLinks = dataLinks;
 }