vb.net-to-c#
How do I translate this VB.NET assignment to C#?
I usually program in VB.NET, but am trying to use C#. In VB.NET, if form1 has a toolStripButton1 and in UserControl I usually write like this:[详细]
2023-04-03 08:42 分类:问答Converting linq-to-xml query from vb to c#
Could you help Dim ScriptDOC As XDocument ScriptDOC = XDocument.Parse(e.Result) Dim Result = From ele In XElement.Parse(ScriptDOC.ToString).Elements(\"HANDERDETAILS\")[详细]
2023-04-01 14:12 分类:问答Problem with Sum in c#
I开发者_如何学C\'ve got a LINQ query in VB: Dim ss = _someClassDataSource.Sum(Function(s) TryCast(s, SomeClass).BreakdownCover)[详细]
2023-03-30 20:01 分类:问答Getting CS1502: The best overloaded method match for <some_method> has some invalid arguments
I currently have the following code: <%@ WebService Language=\"C#\" Class=\"Notifications\" %> using System;[详细]
2023-03-26 00:38 分类:问答Problems converting VB.NET to C#
I am trying to convert some vb.net to C#, but I keep getting errors.At the moment, I am getting the following error:[详细]
2023-03-26 00:36 分类:问答Alternative to VB.NET's Type Conversion functions (CBool) in C#?
Is there any alternative to VB\'s CBool keyword in C#? What about all the other functions? CBool will turn to a开发者_JAVA百科 Boolean any valid boolean: 0, \"False\", null etc.The trick is that the[详细]
2023-03-16 17:24 分类:问答How do I use FileOpen (VB.NET) in C#? How do I convert this code?
So, I\'m working 开发者_运维问答on converting this code from VB.NET to C#: FileOpen(1, Application.StartupPath & \"\\Stub.exe\", _[详细]
2023-03-15 05:48 分类:问答How to convert code in Visual Basic to C#
This is code in VB.NET: Protected Overrides ReadOnly Property CreateParams() As CreateParams Get Dim CP As CreateParams = MyBase.开发者_JS百科CreateParams[详细]
2023-02-15 00:53 分类:问答VB.NET TO C# - Gridview Code behind for a search from a listbox w a stored procedure
I am looking for the correct code behind syntax in C# for displaying Search Results from multiple parameters in Gridview. I just did something similar in VB.NET but I have to update a project in C#.NE[详细]
2023-02-11 06:26 分类:问答What is the best alternative "On Error Resume Next" for C#?
If I put empty catch blocks for my C# code, is it going to be an equivalent for VB.NET\'s \"On Error Resume Next\" statement.[详细]
2023-02-07 18:23 分类:问答