📜  persian lorem ipsum - C# (1)

📅  最后修改于: 2023-12-03 14:45:08.707000             🧑  作者: Mango

Persian Lorem Ipsum - C#

Introduction

Persian Lorem Ipsum - C# is a library that provides Persian dummy text for developers. The library is designed to help developers create test data for their applications.

Installation

The library is available on NuGet. You can install it using the Package Manager Console in Visual Studio or using the .NET CLI.

Package Manager Console
PM> Install-Package PersianLoremIpsum
.NET CLI
> dotnet add package PersianLoremIpsum
Usage

The library provides a LoremIpsum class with methods to generate dummy text.

using PersianLoremIpsum;

...

// Generate a paragraph
string paragraph = LoremIpsum.GetParagraph();

// Generate a sentence
string sentence = LoremIpsum.GetSentence();

// Generate a phrase
string phrase = LoremIpsum.GetPhrase();
Example
using System;
using PersianLoremIpsum;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            // Generate a paragraph
            string paragraph = LoremIpsum.GetParagraph();
            Console.WriteLine(paragraph);

            // Generate a sentence
            string sentence = LoremIpsum.GetSentence();
            Console.WriteLine(sentence);

            // Generate a phrase
            string phrase = LoremIpsum.GetPhrase();
            Console.WriteLine(phrase);
        }
    }
}
Contribution

Contributions are always welcome! If you have any suggestions or found a bug, please open an issue or submit a pull request.

License

This library is licensed under the MIT License.