有没有办法out
在未初始化的对象属性上使用?
前任:
QuoteDetail q = new QuoteDetail();
Dictionary<int, string> messageDict = SplitMessage(msg);
messageDict.TryGetValue(8, out q.QuoteID); //doesn't work
有没有办法out
在未初始化的对象属性上使用?
前任:
QuoteDetail q = new QuoteDetail();
Dictionary<int, string> messageDict = SplitMessage(msg);
messageDict.TryGetValue(8, out q.QuoteID); //doesn't work