Skip to main content

Get started

Prerequisites

Spinner is only compatible with dotnet core 3.0, 3.1 and dotnet 5.0, 6.0.

Installation

Spinner is distributed as a NuGet package. See the spinner for more information.

dotnet add package Spinner

Import Spinner

After install the package, you need import Spinner class into your class.

using Spinner;

Configuring an Object

To have a good knowledge to how configure your object, you can see the example

Using Spinner

Run WriteAsString to get mapped object as string or call WriteAsSpan to get the result as span:

 var nothing = new Nothing("spinner", "www.spinner.com.br");
var spinner = new Spinner<Nothing>(nothing);
var stringResponse = spinner.WriteAsString();
//stringresponse = " spinner www.spinner.com.br"
 var nothing = new Nothing("spinner", "www.spinner.com.br");
var spinner = new Spinner<Nothing>(nothing);
var spanResponse = spinner.WriteAsSpan();
//spanResponse = " spinner www.spinner.com.br"