First  |  Prev |  Next  |  Last
Pages: 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
((System.IO.Stream)(s)).ReadTimeout. What might be wrong?
Hello, I have a class that writes to a MemoryStream but I am getting a strange error: ReadTimeout = '((System.IO.Stream)(s)).ReadTimeout' threw an exception of type 'System.InvalidOperationException' base {System.SystemException} = {"Timeouts are not supported on this stream."} Source = "mscorlib" ... 20 May 2010 17:14
ArgumentException unhandled: OleAutDate
I've run into an awkward exception. I'm using interop to a microsoft function that gets a DateTime from the web. Occasionally one will come in as a null (shows as 12/30/1899 12:00:00 am), and generates an exception: Not a legal OleAut date. I'm copying the incoming DateTime to a "DateTime?", so the problem seems... 20 May 2010 23:47
Solution using Expression tree
static class PropertyName<TClass> { public static string Get<TPropertyReturnValue>(Expression<Func<TClass, TPropertyReturnValue>> expr) { var memberExpr = expr.Body as MemberExpression; if (memberExpr == null) throw new ArgumentException("Expression must contain the only member... 20 May 2010 09:28
[^o]o{1,3}[^o] is wrong :-/
> I meam what is the purpose of using a max of 3 here then ? //Tony I think you misunderstood how to use it. It means that if it finds any string that contains 1 to 3 "0" it should return match, but then it continues to search the rest of the string too see if there are any other matches. You have to spec... 20 May 2010 07:17
why does this regular expression match
Hi! Here I say minimum 1 o and maximum three o but here I have more then three o and this expression give true but it should give false according to me ? bool status = Regex.IsMatch("foooooood", "o{1,3}"); //Tony ... 20 May 2010 15:01
Porting ASP.NET/SQL Server to JAVA/Oracle
Our clients are happy with our ASP.NET/SQL Server app, but one of their divisions has a preferred technology of JAVA/Oracle and has asked us to do a port. Anyone got any pointers about hints, tips, tricks and gotchas? It's a Customer Query system, if that helps. Thanks Edward ... 21 May 2010 18:23
regular expression
Hi! Here I have two simple regular expression. The first one give true which according to me is correct. The second one also give true but it should give false according to me because I say that a match should exist if you have zero o like tn as in the first example.but here I have one o. So why does it n... 20 May 2010 12:47
Get Windows OS version as string
Hi, How can I retrieve the Windows OS version as string ? I need to present this information in my application GUI. I am familier with the functions that retrieve this information as enum, but I do not want to parse it myself (and need to update the code every time a new OS will be released). In other words, ... 20 May 2010 20:31
using System; class Program { static void Main(string[] args) { your_number a = new your_number(); a.sides = Int32.Parse(Console.ReadLine()); } } public interface number { //public int side; int sides { set; get; } } public class your_numbe... 20 May 2010 12:47
What is wrong with the icon ?
I have the following problem. Version: Visual C# Express 2010, Windows 7 Home premium 64 bit. Problem: I have added icon to the application at the Propoerties -> Application -> Icon and manifest tab by browsing icon file. The icon file has the following images: 128 x 128 x 32 bit color 64 x 64 x 32 bit... 19 May 2010 21:36
First  |  Prev |  Next  |  Last
Pages: 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39