Transformer.Lookup C# (CSharp) Method

Lookup() 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 Lookup ( Class, type ) : Transform,
type Class, /// the type to determine whether its transformable ///
return Transform,
   public Transform Lookup(Class type) {
      Transform transform = cache.fetch(type);
      if(transform != null) {
         return transform;
      }
      if(error.contains(type)) {
         return null;
      }
      return Match(type);
   }
   /// <summary>