Exemplo n.º 1
0
        /// <summary>
        /// Asynchronously builds a name of the associated instance
        /// </summary>
        /// <param name="culture">A <see cref="CultureInfo" /> specifying the language of the constructed name</param>
        /// <returns>A <see cref="Task{String}" /> representing the asynchronous operation</returns>
        /// <exception cref="NameExpressionException">The specified specifier does not exist or it's value is not string representation of decimal</exception>
        public async Task <string> BuildNameAsync(CultureInfo culture)
        {
            var value = await _operand.GetDecimalValue().ConfigureAwait(false);

            var result = SdkInfo.DecimalToStringWithSign(value);

            return(result);
        }