Browsing 7239 questions and answers with Jon Skeet
It's not really clear what you're trying to achieve, but currently you're calling del here: new Thread(new ThreadStart(del(targetUrl))) You've got a fundamental problem though - the method you're trying to call doesn't have the right... more 9/9/2014 11:00:18 PM
Enumerable.Cast doesn't perform custom conversions, which is what you want. You need to cast directly - but that's pretty simple: OffsetDictionary = XDocument.Load(folderPath+@"\offsets.xml") ... more 9/9/2014 10:40:55 PM
An iterator contains separate state to the collection: it contains a cursor for where you are within the collection. As such, there has to be a separate object to represent that extra state, a way to get that object, and operations on that... more 9/9/2014 11:55:39 AM
It's implementation specific, and you should not rely on anything you happen to observe in one particular implementation. Only rely on what is guaranteed: two equal strings will return the same value, in the same process. The same string... more 9/9/2014 5:30:48 AM
You're running into difficulties due to there being parameters embedded within your expression tree, I suspect. The replacer should only replace the top-level parameters. You could pass the top-level expressions into... more 9/8/2014 3:23:38 PM
Indeed, your Set method is meant to have a return type of IEntitySet<IEntity>, but you've tried to declare the implementation using EntitySet<Entity>. Two problems there: IEntitySet isn't EntitySet IEntity isn't Entity The... more 9/8/2014 3:02:40 PM
The difference is that the first is just taking a character array and creating a string of the same length, with the same char contents. The second is decoding from bytes to chars - using the platform default encoding in this case. You can... more 9/8/2014 1:54:55 AM
Your SomethingElse interface says that any implementation needs to accept any type which implements Something - not just one specific example. Either you need to change SomethingElse_class to: class SomethingElse_class : SomethingElse { ... more 9/7/2014 12:54:57 PM
In order to create a Player, you create four new Finger objects... but each Finger object is also a Player (because Finger extends Player). Therefore creating each of those four Finger objects requires creating four more Fingers, etc...... more 9/7/2014 12:41:49 PM
This is one problem: name = title1.Element("name").Value, file= title1.Element("file").Value, info= title1.Attribute("info").Value)); Look at your XML: <setting name="file1" file ="example3.c" info ="open it!"... more 9/7/2014 7:46:20 AM