Exemplo n.º 1
0
 public static ArrayListBuilderTransformer Get(Type arrayBaseType, int arrayLength)
 {
     ArrayListBuilderTransformer t;
     BaseTypeAndLengthPair p = new BaseTypeAndLengthPair(arrayBaseType, arrayLength);
     cachedTransformers.TryGetValue(p, out t);
     if (t == null)
         cachedTransformers[p] = t = new ArrayListBuilderTransformer(arrayBaseType, arrayLength);
     return t;
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            BaseTypeAndLengthPair other = obj as BaseTypeAndLengthPair;

            if (obj == null)
            {
                return(false);
            }
            return(this.baseType.Equals(other.baseType) && this.length == other.length);
        }
Exemplo n.º 3
0
        public static ListBuilderTransformer Get(Type arrayBaseType, int arrayLength)
        {
            ListBuilderTransformer t;
            BaseTypeAndLengthPair  p = new BaseTypeAndLengthPair(arrayBaseType, arrayLength);

            cachedTransformers.TryGetValue(p, out t);
            if (t == null)
            {
                cachedTransformers[p] = t = new ListBuilderTransformer(arrayBaseType, arrayLength);
            }
            return(t);
        }