c#-to-vb.net
Does VB.NET support automatic getters and setters on properties?
In C# I can do this: public string myProperty { get; private set; } This is referred to as an \"automatic getter/setter\" (from what I\'ve heard). 开发者_如何学JAVADoes VB.NET support these? So far[详细]
2023-02-23 07:21 分类:问答Can VB.NET catch exceptions without defining a local exception variable?
In C# you can do this: try { // some code here } catch (MyCustomException) { // exception code here } catch (Exception)[详细]
2023-02-22 18:49 分类:问答Error when trying to convert C# code to VB.Net
I\'m converting some C# code from another project to VB.Net but the following code is throwing an error[详细]
2023-02-20 16:53 分类:问答What is the VB equivalent of the following code snippet?
XmlWriterSettings settings = new XmlWriterSettings(); settings.Encoding = Encoding.UTF8; settings.Indent = true;[详细]
2023-02-19 04:10 分类:问答Help me convert LINQ C# to VB please
Would someone please help me convert this code from C# to VB. This is really driving me crazy. private List<Customer> Customers[详细]
2023-02-18 08:18 分类:问答How to bring a Message box Window
In VB one can easily do this to bring up a Message box: Ms开发者_运维知识库gBox(\"Hello\") How to achieve the same in C#?Simple: You can use MessageBox.Show(\"Hello\");[详细]
2023-02-18 05:02 分类:问答How to read files
How to read files in C#? What are the avai开发者_StackOverflowbable methods? Well, there\'s the File class.Vague question, but on the information given and assuming text files:[详细]
2023-02-18 04:56 分类:问答How to read and see the Binary file
This is what my code looks like: System.IO.BinaryWriter output; System.IO.TextReader input; System.IO.FileStream fs = new[详细]
2023-02-18 02:21 分类:问答Export to Excel using Open XML. But Last cell not filling up
I used this code snippet to export data to Excel using Open XML. The code was in VB.Net so I converted it to C#. It\'s working fine with only one (annoying) glitch. The last cell (Z5) is blank. When[详细]
2023-02-14 14:26 分类:问答C# code convert into VB.Net (Generic)
DataTable dt = new Dat开发者_如何学编程aTable(); string str; string[] s = Array.ConvertAll<DataRow, string>(dt.Select(), delegate(DataRow row)[详细]
2023-02-12 15:18 分类:问答