Explain Direct CAST vs CType ?
Answer / Minakshi Rani
Direct cast in C# is used to convert one type of object into another specific type. The syntax for this is (target-type)object. For example: int x = (int)myObject; CType in VB.NET is similar to direct cast but can perform implicit conversions if the compiler decides it's safe.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of console readkey ()?
int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?
What are the benefits of using the aggregate method in linq?
How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!
What is the difference between ienumerable and iqueryable?
What is windows application in c#?
Explain About multi level and multiple inheritance how to achieve in .net
What is anonymous method in c#?
What Is A Multicast Delegate?
What is a partial class in c#?
What is c# used for?
When Should You Call The Garbage Collector In .net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)