Beispiel #1
0
            public IFooType GetTypeFromProxyClassDescriptor(ProxyClassDescriptor pcd)
            {
                IFooTypeBuilder result;

                if (_typesInProgress.TryGetValue(pcd, out result))
                {
                    return(result);
                }

                if (!pcd.IsValid())
                {
                    return(null);
                }

                var pcc = new ProxyClassCoder(this, pcd);

                return(new FooTypeFromType(pcc.Generate(t => _typesInProgress.Add(pcd, t))));
            }
Beispiel #2
0
            public IFooType GetTypeFromProxyClassDescriptor(ProxyClassDescriptor pcd)
            {
                IFooTypeBuilder result;
                if (_typesInProgress.TryGetValue(pcd, out result))
                    return result;

                if (!pcd.IsValid())
                    return null;

                var pcc = new ProxyClassCoder(this, pcd);
                return new FooTypeFromType(pcc.Generate(t => _typesInProgress.Add(pcd, t)));
            }