نظرات مطالب
دات نت 4 و کلاس Lazy
راستی فکر کنم یواش یواش باید عنوان وبتون رو عوض کنید به ".Net Tips and .Net 4.0"
نظرات مطالب
طریقه بررسی صحت کدملی به کمک متدهای الحاقی
با سلام

من از الگوریتم زیر استفاده میکنم گفتم اینجا بنویسم شاید به کار بیاد

 Private Function ValidateNcode(ByVal NC As Int64) As Boolean
        If IsNumeric(NC) = False Or NC.ToString.Length < 10 Then
            Return False
        End If
        Dim vnc As String = NC.ToString
        Dim pos As Integer = 10
        Dim sum As Integer = 0

        For i = 0 To 8
            sum += Integer.Parse(vnc.ToCharArray()(i).ToString()) * pos
            pos = pos - 1
        Next i

        Dim remind As Integer = sum Mod 11
        Dim controlNum As Integer = Integer.Parse(vnc.ToCharArray()(9))

        If remind <= 2 Then
            If controlNum = remind Then
                Return True
            Else
                Return False
            End If
        Else
            If (11 - remind) = controlNum Then
                Return True
            Else
                Return False
            End If
        End If
    End Function
private bool ValidateNcode(Int64 NC)
{
if (IsNumeric(NC) == false | NC.ToString.Length < 10) {
return false;
}
string vnc = NC.ToString;
int pos = 10;
int sum = 0;

for (i = 0; i <= 8; i++) {
sum += int.Parse(vnc.ToCharArray()(i).ToString()) * pos;
pos = pos - 1;
}

int remind = sum % 11;
int controlNum = int.Parse(vnc.ToCharArray()(9));

if (remind <= 2) {
if (controlNum == remind) {
return true;
} else {
return false;
}
} else {
if ((11 - remind) == controlNum) {
return true;
} else {
return false;
}
}
اشتراک‌ها
پروژه فروشگاه پیاده سازی شده با microservice و container
Easy to get started sample reference microservice and container based application. Cross-platform on Linux and Windows Docker Containers, powered by .NET Core 2.0 and Docker engine. Supports Visual Studio 2017, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor.  
پروژه فروشگاه پیاده سازی شده با microservice و container
اشتراک‌ها
ارتقاء Xamarin.Forms به NET Standard.

Welcome to The Xamarin Show Snack Pack Edition. A Snack Pack is bite sized episode that is focused on a specific topic and covered in just a few minutes. Today, we take a look at how to manage and upgrade your Xamarin and Xamarin.Forms based applications to target .NET Standard. We also see how to install existing PCL based NuGets into that library. 

ارتقاء Xamarin.Forms به NET Standard.