Transformer.Match C# (CSharp) Method

Match() public method

This method is used to acquire a Transform for the the specified type. If there is no transform for the type then this will return null. Once acquired once the transform is cached so that subsequent lookups will be performed faster.
public Match ( Class, type ) : Transform,
type Class, /// the type to determine whether its transformable ///
return Transform,
   public Transform Match(Class type) {
      Transform transform = matcher.Match(type);
      if(transform != null) {
         cache.cache(type, transform);
      } else {
         error.cache(type, this);
      }
      return transform;
   }
}