示例#1
0
        public virtual bool IsOpSupportedByTable(OperationCapabilityMetadata metadata, TexlNode node, TexlBinding binding)
        {
            Contracts.AssertValue(metadata);
            Contracts.AssertValue(node);
            Contracts.AssertValue(binding);

            if (!metadata.IsUnaryOpInDelegationSupported(_unaryOp))
            {
                SuggestDelegationHint(node, binding, TexlStrings.OpNotSupportedByClientSuggestionMessage_OpNotSupportedByClient, _unaryOp.ToString());
                return(false);
            }

            if (!metadata.IsUnaryOpSupportedByTable(_unaryOp))
            {
                SuggestDelegationHint(node, binding, TexlStrings.OpNotSupportedByServiceSuggestionMessage_OpNotSupportedByService, _unaryOp.ToString());
                return(false);
            }

            return(true);
        }