void SetValueOfReference(T value) { GenericVariable <T> refObj = GenericVariable <T> .GetAsType(Variable); if (refObj != null) { refObj.Value = value; } }
T GetValueFromReference() { GenericVariable <T> refObj = GenericVariable <T> .GetAsType(Variable); if (refObj != null) { //if (refObj.Value) try { return((T)refObj.Value); } catch { return(default(T)); } } else { return(default(T)); } }