Exemple #1
0
        //
        // For complex custom attributes, use this overload to defer the work of constructing the argument lists until needed.
        //
        internal RoPseudoCustomAttributeData(ConstructorInfo constructor, Func <CustomAttributeArguments> argumentsPromise)
        {
            CustomAttributeArguments ca = argumentsPromise();

            _constructor      = constructor;
            _argumentsPromise = argumentsPromise;
        }
        private CustomAttributeArguments LazilyComputeArguments()
        {
            CustomAttributeArguments ca = _argumentsPromise();

            _lazyFixedArguments = ca.FixedArguments;
            _lazyNamedArguments = ca.NamedArguments;
            return(ca);
        }