Answers for "c# int"

C#
1

bytes size c#

public static string GetSizeInMemory(this long bytesize)
{


    string[] sizes = { "B", "KB", "MB", "GB", "TB" };
    double len = Convert.ToDouble(bytesize);
    int order = 0;
    while(len >= 1024D && order < sizes.Length - 1)
    {
        order++;
        len /= 1024;
    }

    return string.Format(CultureInfo.CurrentCulture,"{0:0.##} {1}", len, sizes[order]);
}
Posted by: Guest on June-22-2020
4

c# int

int MyInt = 1;
Posted by: Guest on February-11-2020
0

c# nuint

//Native unsigned integer (32-bit in 32-bit platforms, and 64-bit on 64-bit platforms)
Posted by: Guest on January-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language