Exemplo n.º 1
0
        public IPhpValue TranslateToPhp(IExternalTranslationContext ctx, CsharpInstancePropertyAccessExpression src)
        {
            this.ctx = ctx;
            this.src = src;
            var t = TranslatorBase.GetGenericTypeDefinition(src.Member.DeclaringType);

            if (t == typeof(KeyValuePair <,>))
            {
                return(_KeyValuePair());
            }
            if (t == typeof(Nullable <>))
            {
                return(_Nullable());
            }
            if (t == typeof(Array))
            {
                return(_Array());
            }
            return(null);
        }