コード例 #1
0
        private void VisitDynamicType(Type type, IList <DynamicElement> dynamics)
        {
            var attribute = type.GetDynamicAttribute();

            if (attribute == null)
            {
                return;
            }

            var e = new DynamicElement();

            e.type     = type.AssemblyQualifiedName;
            e.lifetime = attribute.Lifetime;

            dynamics.Add(e);
        }
コード例 #2
0
        private void VisitDynamicType(Type type, IList<DynamicElement> dynamics)
        {
            var attribute = type.GetDynamicAttribute();
            if ( attribute == null ) return;

            var e = new DynamicElement();
            e.type = type.AssemblyQualifiedName;
            e.lifetime = attribute.Lifetime;

            dynamics.Add(e);
        }