Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace TransformerToWords
- {
- /// <summary>
- /// Implements transformer class.
- /// </summary>
- public class Transformer
- {
- /// <summary>
- /// Transforms each element of source array into its 'word format'.
- /// </summary>
- /// <param name="source">Source array.</param>
- /// <returns>Array of 'word format' of elements of source array.</returns>
- /// <exception cref="ArgumentNullException">Thrown when array is null.</exception>
- /// <exception cref="ArgumentException">Thrown when array is empty.</exception>
- /// <example>
- /// new[] { 2.345, -0.0d, 0.0d, 0.1d } => { "Two point three four five", "Minus zero", "Zero", "Zero point one" }.
- /// </example>
- public string[] Transform(double[]? source)
- {
- throw new NotImplementedException("You need to implement this method.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement