DeveloperHelper 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package DeveloperHelper --version 1.0.0
NuGet\Install-Package DeveloperHelper -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DeveloperHelper" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DeveloperHelper" Version="1.0.0" />
<PackageReference Include="DeveloperHelper" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DeveloperHelper --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DeveloperHelper, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DeveloperHelper&version=1.0.0
#tool nuget:?package=DeveloperHelper&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DeveloperHelper
DeveloperHelper, geliştiricilerin günlük ihtiyaçlarını karşılamak için tasarlanmış kapsamlı bir yardımcı kütüphanedir.
Özellikler
String İşlemleri
- Null/Empty kontrolleri
- Title Case dönüşümleri
- String formatlama
- Email, URL, GUID, Tarih validasyonları
Dosya İşlemleri
- Klasör oluşturma
- Dosya okuma/yazma
- Dosya silme
Parse İşlemleri
- Generic tip dönüşümleri
- Güvenli parse işlemleri
- Varsayılan değer desteği
Format İşlemleri
- Para birimi formatlama
- Tarih formatlama
- Telefon numarası formatlama
Validasyon İşlemleri
- Entity validasyonu
- Property validasyonu
- Koleksiyon validasyonu
- Null kontrolleri
- Sayısal değer kontrolleri
- Özel validasyon kuralları
Hata Yönetimi
- IHasError interface'i
- ErrorTrackingEntity sınıfı
- ValidationResult desteği
Bulk Insert İşlemleri
- Generic bulk insert desteği
Kurulum
dotnet add package DeveloperHelper
Kullanım Örnekleri
String İşlemleri
string value = "hello world";
string titleCase = value.ToTitleCase(); // "Hello World"
// Validasyon örnekleri
string email = "test@example.com";
bool isValidEmail = email.IsValidEmail();
string url = "https://example.com";
bool isValidUrl = url.IsValidUrl();
Validasyon İşlemleri
// Entity validasyonu
public class User
{
[Required]
public string Name { get; set; }
[EmailAddress]
public string Email { get; set; }
}
var user = new User { Name = "John", Email = "john@example.com" };
bool isValid = user.IsValid();
string errors = user.GetValidationErrors();
// Koleksiyon validasyonu
var numbers = new List<int> { 1, 2, 3, 4, 5 };
bool hasItems = numbers.HasItems();
bool isValid = numbers.IsValid(x => x > 0);
// Sayısal değer kontrolleri
int number = 42;
bool isInRange = number.IsInRange(0, 100);
bool isPositive = number.IsPositive();
Null Kontrolleri
string value = null;
value.ThrowIfNull(nameof(value), "Value cannot be null");
// Koleksiyon null kontrolü
var list = new List<string>();
bool isEmpty = list.IsNullOrEmpty();
Dosya İşlemleri
await FileHelper.WriteAllTextAsync("test.txt", "Hello World");
string content = await FileHelper.ReadAllTextAsync("test.txt");
Parse İşlemleri
int number = ParseHelper.ParseOrDefault("123", 0);
bool success = ParseHelper.TryParse("123", out int result);
Format İşlemleri
string currency = FormatHelper.FormatCurrency(123.45m);
string date = FormatHelper.FormatDate(DateTime.Now);
string phone = FormatHelper.FormatPhoneNumber("5551234567");
Hata Yönetimi
public class MyEntity : ErrorTrackingEntity
{
[Required]
public string Name { get; set; }
public bool Validate()
{
return base.Validate();
}
}
Lisans
Bu proje MIT lisansı altında lisanslanmıştır. Detaylar için LICENSE dosyasına bakın.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.Configuration.UserSecrets (>= 8.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.