コード例 #1
0
 /// <summary>
 /// Gets an object.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="parameterAccessor"></param>
 /// <returns></returns>
 public T Get <T>(ObjectParameterAccessor <T> parameterAccessor)
 {
     return((T)ObjectValues[parameterAccessor.BindingSlot]);
 }
コード例 #2
0
 /// <summary>
 /// Sets an object.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="parameterAccessor"></param>
 /// <param name="value"></param>
 public void Set <T>(ObjectParameterAccessor <T> parameterAccessor, T value)
 {
     ObjectValues[parameterAccessor.BindingSlot] = value;
 }