本文整理汇总了C#中System.UInt32.MinValue字段的典型用法代码示例。如果您正苦于以下问题:C# UInt32.MinValue字段的具体用法?C# UInt32.MinValue怎么用?C# UInt32.MinValue使用的例子?那么恭喜您, 这里精选的字段代码示例或许可以为您提供帮助。
在下文中一共展示了UInt32.MinValue字段的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1:
public class Temperature {
public static uint MinValue {
get {
return UInt32.MinValue;
}
}
public static uint MaxValue {
get {
return UInt32.MaxValue;
}
}
// The value holder
protected uint m_value;
public uint Value {
get {
return m_value;
}
set {
m_value = value;
}
}
}
示例2: Main
//引入命名空间
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Security.Cryptography;
public class MainClass
{
public static void Main()
{
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(byte).ToString(), sizeof(byte), byte.MinValue, byte.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(char).ToString(), sizeof(char), (int)char.MinValue, (int)char.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(short).ToString(), sizeof(short), short.MinValue, short.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(int).ToString(), sizeof(int), int.MinValue, int.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(long).ToString(), sizeof(long), long.MinValue, long.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(sbyte).ToString(), sizeof(sbyte), sbyte.MinValue, sbyte.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(ushort).ToString(), sizeof(ushort), ushort.MinValue, ushort.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(uint).ToString(), sizeof(uint), uint.MinValue, uint.MaxValue);
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(ulong).ToString(), sizeof(ulong), ulong.MinValue, ulong.MaxValue);
}
}