C# 的關鍵字系列(4 of n)

和對象類型(object type),類型轉換(type conversions)打交道的關鍵字: as is explicit implicit operator sizeof typeof     is and as     is : 用來判斷某個對象是不是某個類型。 string str= string.Empty;  if (str is string)  {  } 在這裏如果str 是s
相關文章
相關標籤/搜索