public static bool TryGet <T>(BlackboardEntryId blackboardEntryId, out T value) { value = default(T); if (!BlackboardStore.ContainsKey(blackboardEntryId)) { return(false); } var currentValue = BlackboardStore[blackboardEntryId]; if (currentValue == null) { return(false); } value = (T)currentValue; return(true); }
public static object Get(BlackboardEntryId blackboardEntryId) { return(BlackboardStore[blackboardEntryId]); }
public static void Set(BlackboardEntryId blackboardEntryId, object value) { BlackboardStore[blackboardEntryId] = value; }