Browsing 7239 questions and answers with Jon Skeet
It's always a reference. The value of an expression, the value in an array etc is always either a reference or a primitive value. Nothing will copy an object implicitly - you'd have to do that explicitly. (As an aside, you should follow... more 12/18/2013 8:51:31 AM
Looking at the documentation, I suspect you want to call zip.AddFiles(arrFileName, false, ""); so that the directory hierarchy isn't preserved. It's possible that just zip.AddFiles(arrFileName, ""); would work too; it's not entirely... more 12/18/2013 8:47:45 AM
This is the problem: new String(md.digest("test".getBytes("UTF-8")), "UTF-8"); You're trying to decode the result of the MD5 digest as if it were a UTF-8 string. It's not. It's not text at all - it's just binary data. What you're doing... more 12/18/2013 8:20:41 AM
I suspect this is the problem: <ul>@parent.Value</ul> That's closing the <ul> tag, rather than including each of the child elements within it. The reason you're getting the CHILED elements twice is that you're using... more 12/18/2013 8:09:22 AM
Is it possible to find out it's address? No. You can, however, check for reference equality - which is all you care about: if (list1 == list2) { // They're the same } If you really want to do this from logging, you can use... more 12/17/2013 4:01:23 PM
Well yes - query.ToList() will return a List<T>, which doesn't implement IQueryable<T>. Indeed, the ToList() would render the paging less useful, as it would all be done locally after fetching the whole table into memory. Just... more 12/17/2013 3:39:22 PM
EDIT: I may well have misread the question, and inferred too much from your class name being PrimaryKeyModel - I had interpreted that to be a model for a primary key, and that you wanted to find duplicate primary keys. If that's not the... more 12/17/2013 3:20:12 PM
Yes, this is the problem: while (Socket con = dtserver.accept ()) The while statement needs a boolean condition - and a Socket isn't a boolean. (And you can't declare a variable in a while condition either...) You probably want: while... more 12/17/2013 2:50:45 PM
Indeed, there's no * operator taking a string and an integer. The simplest option is probably to use the string(char, int) constructor: Write(new string(' ', number)); Depending on your actual use case, you might want to look at... more 12/17/2013 11:22:16 AM
DataOutputStream.writeUTF doesn't just write the characters out in a way that C is going to understand: It uses a modified version of UTF-8 It prepends the length of the string You could write code in C to handle that, but you'd need... more 12/17/2013 10:04:10 AM