比較有用的列舉方法

2021-08-25 18:06:15 字數 506 閱讀 7764

///

/// 將駱駝命名法的單詞轉為句子. 如notsent-->not sent

///

///

///

/// 列舉型別

/// 列舉的值,object型別只是避免轉換,其實只能是int型別

///

public static string getenumdescbyvalue(type enumtype, object enumvalue)

return null;

}/// 從列舉型別和它的特性讀出並返回乙個鍵值對

/// type,該引數的格式為typeof(需要讀的列舉 型別)

/// 鍵值對

public static namevaluecollection getnvcfromenumvalue(type enumtype)

else

nvc.add(strtext, strvalue);}}

return nvc;

}

比較有用的列舉方法

將駱駝命名法的單詞轉為句子.如notsent not sent 列舉型別 列舉的值,object型別只是避免轉換,其實只能是int型別 public static string getenumdescbyvalue type enumtype,object enumvalue return null...

比較有用的樣式

背景圖水平垂直居中 背景圖居左垂直居中 background ebebeb url images bloghtimg bkht jia.jpg 5px center no repeat 距離左邊5px 背景圖和文字顯示在一行 background ebebeb url images bloghtim...

比較有用的linux命令

msn jinglexy at yahoo dot com dot cn sbin blockdev v getss dev hda1 檢視分割槽區塊大小 sbin blockdev v getsize dev hda1 檢視分割槽總大小 sbin chkconfig list 列出各個run le...