コード例 #1
0
            public DeclarationBehavior GetDeclarationBehavior(CancellationToken cancellationToken)
            {
                if (_useAsReturnValue)
                {
                    return(_variableStyle.ReturnStyle.DeclarationBehavior);
                }

                if (_variableSymbol.GetUseSaferDeclarationBehavior(cancellationToken))
                {
                    return(_variableStyle.ParameterStyle.SaferDeclarationBehavior);
                }

                return(_variableStyle.ParameterStyle.DeclarationBehavior);
            }