コード例 #1
0
        protected CustomReflectionContext(ReflectionContext source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            _sourceContext = source;
            _projector     = new ReflectionContextProjector(this);
        }
コード例 #2
0
        protected CustomReflectionContext(ReflectionContext source)
        {
            if (source is null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            SourceContext = source;
            _projector    = new ReflectionContextProjector(this);
        }
コード例 #3
0
 protected CustomReflectionContext()
 {
     _projector = new ReflectionContextProjector(this);
 }
コード例 #4
0
 protected CustomReflectionContext(ReflectionContext source)
 {
     SourceContext = source ?? throw new ArgumentNullException("source");
     _projector    = new ReflectionContextProjector(this);
 }