#region usings using System.Collections.Generic; #endregion namespace SM.Base.Drawing { /// /// A custom dictionary, with a few useful methods. /// public class ShaderArguments : Dictionary { /// /// Returns the stored value or the default value if the name doesn't exist. /// /// /// /// /// public TType Get(string name, TType defaultValue = default) { return ContainsKey(name) ? (TType) this[name] : defaultValue; } } }