मैं वर्तमान में पुस्तक Professional Enterprise .NET पढ़ रहा हूँ और मैं उदाहरण के कार्यक्रमों में से कुछ में इस चेतावनी को ध्यान दिया है:NUnit.Framework.Assert.IsInstanceOfType() अप्रचलित है
'NUnit.Framework.Assert.IsInstanceOfType(System.Type, object)' is obsolete
अब मैं पहले से ही हो सकता है जवाब मेरी खुद का सवाल है, लेकिन इस चेतावनी को ठीक करने के लिए यह केवल Assert.IsInstanceOf() के साथ Assert.IsInstanceOfType() को बदलने का मामला है? उदाहरण के लिए इस के लिए:
Assert.IsInstanceOfType(typeof(ClassName), variableName);
बन जाएगा:
Assert.IsInstanceOf(typeof(ClassName), variableName);
है यही कारण है कि यहां तक कि क्लीनर वाक्य रचना, धन्यवाद मार्क! – Malice