C#中Guid类型值如何判断不是初始值!
2016-03-21 13:46
1731 查看
示例:
如何判断不是初始值"00000000-0000-0000-0000-000000000000"
解决方法:
或
用
g1
和
public Guid _CurrentApplayInfoID { get; set; }
如何判断不是初始值"00000000-0000-0000-0000-000000000000"
解决方法:
var g1 = new Guid("00000000-0000-0000-0000-000000000000");
或
var g1 = default(Guid);
用
g1
和
_CurrentApplayInfoID 对比即可!
相关文章推荐
- [leetcode] 250. Count Univalue Subtrees 解题报告
- kquue socket
- php中的文件引用(include,require,include_once,require_once)
- Interview Questions and Ans
- uiautomatorviewer 识别android微信元素报错
- UE4 安卓下找不到蓝图资源
- [bzoj1819] [JSOI]Word Query电子字典
- UVa 123 - Searching Quickly
- Actual Practice : Scalar Valued Functions in my work - 2
- 【笔记】《C#大学教程》- 第12章 GUI(二)
- 蓝牙Bluetooth(BLE)
- WAJUEJI which home strong!
- WAJUEJI which home strong!
- AndroidUI布局----大白话版....
- UITableView的段落设置 — 段头段尾高度
- 最近研究xcodebuild批量打包的一些心得
- View Programming Guide for iOS 摘要
- deque
- [How to]如何通过xib来自定义UIViewController
- UITableView beginUpdates和endUpdates-实现UITableView的动画块