Example #1
0
 public void updateValue(DataLinks dl)
 {
     if (field == null)
     {
         reflectiveUpdate(dl);
     }
     else
     {
         value = field.GetValue(null);
     }
 }
Example #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();
            }
        }
 public DataLinkResponsibility(DataLinks dataLinks)
 {
     this.dataLinks = dataLinks;
 }