Skip to content

Instantly share code, notes, and snippets.

@Mirsalim3635
Mirsalim3635 / Fluent-Validation.md
Created August 3, 2025 12:08
Fluent-Validation

✅ FluentValidation

🔹 Kirish

FluentValidation bu - C# dasturida foydalanuvchidan olingan ma'lumotlarni mahsus qoidalar asosida tekshiradigan kutubhona


using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Telegram.Bot;
using Telegram.Bot.Polling;
using Telegram.Bot.Types.Enums;
namespace bot1;
public class BotHostedService(ILogger<BotHostedService> logger,
ITelegramBotClient botClient,
Console.Write(" Enter the price: ");
var price = int.Parse(Console.ReadLine() ?? "0");
Console.Write(" Enter the strstegy: ");
var namestrategy = Console.ReadLine()?.ToLower();
var strategies = new Dictionary<string, Func<double, double>>()
{
#include <iostream>
using namespace std;
template <typename T>
class Node {
public:
T data;
Node<T>* next;
Node(T value) {