示例#1
0
 /** Add an adaptor for a kind of object so Template knows how to pull properties
  *  from them. Add adaptors in increasing order of specificity.  Template adds Object,
  *  Map, and Template model adaptors for you first. Adaptors you Add have
  *  priority over default adaptors.
  *
  *  If an adaptor for type T already exists, it is replaced by the adaptor arg.
  *
  *  This must invalidate cache entries, so set your adaptors up before
  *  Render()ing your templates for efficiency.
  */
 public virtual void RegisterModelAdaptor(Type attributeType, IModelAdaptor adaptor)
 {
     adaptors[attributeType] = adaptor;
 }
 public override void RegisterModelAdaptor(Type attributeType, IModelAdaptor adaptor)
 {
     base.RegisterModelAdaptor(attributeType, adaptor);
 }
示例#3
0
 /** Add an adaptor for a kind of object so Template knows how to pull properties
  *  from them. Add adaptors in increasing order of specificity.  Template adds Object,
  *  Map, and Template model adaptors for you first. Adaptors you Add have
  *  priority over default adaptors.
  *
  *  If an adaptor for type T already exists, it is replaced by the adaptor arg.
  *
  *  This must invalidate cache entries, so set your adaptors up before
  *  Render()ing your templates for efficiency.
  */
 public virtual void RegisterModelAdaptor(Type attributeType, IModelAdaptor adaptor)
 {
     adaptors[attributeType] = adaptor;
 }