public static void SetLocationStateValue(string locationStateKey, string LocationStateName, object locationStateValue) { LocationState locationState = GetLocationState(locationStateKey); if (locationState.ContainsKey(LocationStateName)) { locationState[LocationStateName] = locationStateValue; } else { locationState.Add(LocationStateName, locationStateValue); } }
public static object GetLocationStateValue(string locationStateKey, string LocationStateName) { object returnData; LocationState locationState = GetLocationState(locationStateKey); if (locationState.ContainsKey(LocationStateName)) { returnData = locationState[LocationStateName]; } else { locationState.Add(LocationStateName, null); returnData = locationState[LocationStateName]; } return(returnData); }