public void updateValue(DataLinks dl) { if (field == null) { reflectiveUpdate(dl); } else { value = field.GetValue(null); } }
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; }