I have to store on one DataColum of one DataTable an Enum containing some values. The enum is defined as follow:
Imports System.ComponentModel
Imports System.Globalization
Public Enum FirmwareUpdateStatus
<Description("updateNotExecuted")> UpdateNotExecuted = 0
<Description("updateSuccess")> UpdateSuccess = 1
<Description("...
What do I need to do in order to upgrade? Should I uninstall the visual studio 2008 first?
Also what do I need to do to get .NET framework 4? Any tutorials or guides about this?
...
I would think that adding that attribute to an interface would be helpful make sure you do not create classes that use the interface and forget to make them serializable.
This could be a very fundamental question, but I wanted to ask the experts.
...
Say I take an arbitrary LINQ2SQL query's Expression, is it possible to invoke it somehow?
MyContext ctx1 = new MyContext("...");
var q = from t in ctx1.table1 where t.id = 1 select t;
Expression qe = q.Expression;
var res = Expression.Invoke(qe);
This throws ArgumentException "Expression of type System.Linq.IQueryable`1[...]' cannot ...
What is the best way to compare objects of value type N? So I want to do a String, Integer, DateTime, etc comparison depending on the type of the object.
...
What are some good tools for .net Assembly Encryption?
I know of codeveil and CodeWall
I played around with both but was wanting to know
are there other/better tools out there
plus/minuses and experience with these two tools.
Please no debate on obfuscation, encryption and all that. I have been asked to make a .net app be written...
I am getting a Cannot access object: DataContext after it's been disposed in the below DAL method. I thought that I would be okay calling dispose there. result is an IEnumurable and I thought it was IQueryable that caused these kinds of problems.
What am I doing wrong? How SHOULD I be disposing of my DataContext. Is there somethin...
i just got an account at:
http://www.whoisxmlapi.com/index.php#/whois-api-doc.php?rid=1
ive never parsed XML with c#, how would i get the information in the <email> tag ?
...
When upgrading/installing a Clickonce application (Winforms, .NET SP1) the window in the taskbar looks like this:
The actual dialog of the download/install shows the app icon. How do I get it to show something other than this silly icon in the taskbar ?
...
I'm trying to come up with a proposal for a client for an interface with a European Automotive manufacturer. The standard interface to transfer data files(EDIFAC) is ODETTE-FTP (OFTP).
I'm trying to find a native component solution, much like what's available for other FTP formats. After much Google searching I haven't been able to fin...
The documentation for .NET's Excel interop API at msdn.com seems rather sparse.
Does anyone know of more thorough documentation elsewhere on the web?
I am looking for something that would, for example, list and explain all the properties of a Worksheet object.
Thanks.
...
I'm explicitly setting the CurrentThread.CurrentUICulture to french right before the Component Resource Manager is being called for my user-control, but the default values are being pulled for the controls, not the french values.
Any ideas?
...
I am getting this error:
Data at the root level is invalid.
Line 1, position 1.
Here's my code:
XmlDocument doc = new XmlDocument();
foreach (string c in colorList)
{
doc.LoadXml("http://whoisxmlapi.com/whoisserver/WhoisService?domainName=" +
c + "&username=user&password=pass");
textBox1.Text += doc.SelectSingle...
Is it guaranteed that the binary representation of singles, doubles, and floats will be identical to the original after serializing and deserializing?
...
here's my code:
XmlDocument doc = new XmlDocument();
foreach (string c in colorList)
{
doc.Load(@"http://whoisxmlapi.com/whoisserver/WhoisService?domainName=" + c + @"&username=user&password=pass");
textBox1.Text += doc.SelectSingleNode("WhoisRecord/registrant/email").InnerText + ",";
}
for the second line of code (textbox1....
how do i ignore exceptions in c#?
i am reading a remote xml file, and sometimes the tag doesnt exist and it throws an exception. how do i ignore the exception and goto next?
...
Possible Duplicate:
GMail SMTP via C# .Net errors on all ports
I am getting the following error when I try to send an email in my C# program. I am using Visual Studio 2008 on windows 7. I would paste my code first and then the error:
class email_log_files
{
private string login_username = "my_gmail_id";
...
I was debugging my project, at some point I also need to debug dll file.
What I did, I locate source code file and open it and all thing went well.
But now, when I reach at the same point dll file automatically open.
How could I avoid this situation? it annoy me.
...
I'd like my application to query a csv file from a secure website. I have no experience with web programming so I'd appreciate detailed instructions. Currently I have the user login to the site, manually query the csv, and have my application load the file locally. I'd like to automate this by having the user enter his login information,...
Given this regular expression: "^[0-9]*\s*(lbs|kg|kgs)$" how do I make it case insensitive? I am trying to use this in a .net regular expression validator, so I need to specify case insensitivity in the pattern.
I can not use the RegexOptions programatically because I am specifying the regular expression in a RegularExpressionValidato...