Advertisement
yahorrr

Untitled

Sep 21st, 2022
1,070
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. using System;
  2.  
  3. namespace TransformerToWords
  4. {
  5.     /// <summary>
  6.     /// Implements transformer class.
  7.     /// </summary>
  8.     public class Transformer
  9.     {
  10.         /// <summary>
  11.         /// Transforms each element of source array into its 'word format'.
  12.         /// </summary>
  13.         /// <param name="source">Source array.</param>
  14.         /// <returns>Array of 'word format' of elements of source array.</returns>
  15.         /// <exception cref="ArgumentNullException">Thrown when array is null.</exception>
  16.         /// <exception cref="ArgumentException">Thrown when array is empty.</exception>
  17.         /// <example>
  18.         /// new[] { 2.345, -0.0d, 0.0d, 0.1d } => { "Two point three four five", "Minus zero", "Zero", "Zero point one" }.
  19.         /// </example>
  20.         public string[] Transform(double[]? source)
  21.         {
  22.             throw new NotImplementedException("You need to implement this method.");
  23.         }
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement