Added missing summeries #1
This commit is contained in:
parent
03d99ea28e
commit
8665b5b709
104 changed files with 1165 additions and 821 deletions
|
|
@ -1,13 +1,26 @@
|
|||
using System;
|
||||
#region usings
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace SM.Base.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom dictionary, with a few useful methods.
|
||||
/// </summary>
|
||||
public class ShaderArguments : Dictionary<string, object>
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the stored value or the default value if the name doesn't exist.
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="defaultValue"></param>
|
||||
/// <typeparam name="TType"></typeparam>
|
||||
/// <returns></returns>
|
||||
public TType Get<TType>(string name, TType defaultValue = default)
|
||||
{
|
||||
return ContainsKey(name) ? (TType)this[name] : defaultValue;
|
||||
return ContainsKey(name) ? (TType) this[name] : defaultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue