📅  最后修改于: 2023-12-03 14:45:08.707000             🧑  作者: Mango
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.
The library is available on NuGet. You can install it using the Package Manager Console in Visual Studio or using the .NET CLI.
PM> Install-Package PersianLoremIpsum
> dotnet add package PersianLoremIpsum
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();
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);
}
}
}
Contributions are always welcome! If you have any suggestions or found a bug, please open an issue or submit a pull request.
This library is licensed under the MIT License.