Transformer.Lookup C# (CSharp) 메소드

Lookup() 공개 메소드

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 ///
리턴 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>