/// <summary> /// Gets the value type of the primary source of this instance. /// </summary> /// <returns>Returns the value type of the primary source of this instance.</returns> public DataValueTypes GetPrimarySourceValueType() { IStoredDataItem storedDataItem = GetPrimarySource(); if (storedDataItem != null) { return(storedDataItem.GetValueType()); } return(DataValueTypes.None); }
// ------------------------------------------ // MUTATORS // ------------------------------------------ #region Mutators /// <summary> /// Adds the specified named data item. /// </summary> /// <param name="item">The item to consider.</param> /// <returns>Returns true if the specified item has been added.</returns> public IScriptVariableSet SetValue(IStoredDataItem item) { return(SetValue(item.Key(), item)); }