Type: Posts; User: Talikag
Search took 0.02 seconds.
Seems like this XML document is not valid...
Either find out where the dtd file referred in the second row of your XML document is located (appearantly it's not in dev.joomla.org/something), Or...
1. Find the XmlNode corresponding to <page> (i.e., by accessing the first child of the root node)
2. Print the InnerXml / OuterXml properties of this node:...
var Listtokens = from s in input.Split(' ')
where s.Length > 3 && !stopWordsList.Contains(s)
In that case, FirstOrDefault should return a value of null, and not exception should be thrown.
Maybe the NullPointerException occurs after the FirstOrDefault call, when attempting to access some...
What do you mean by "zero elements"?
This exception is probably thrown because fieldList contains a null element, i.e., one of the elements of fieldList is null. Therefore, when the program runs your lambda expression on this element,...
Yes - using XPATH you can search for specific nodes. I believe something like that would work:
//load your document to doc here...
XmlNode node =...
Well, You could always temporarily save on disk the image in the wanted format, and then read its content and delete the file:
As long as there's no intersection (like in this case), you can simply call the Replace method twice.
string strResult0 = strValue.Replace("D", "Delta");
strResult0 = strValue.Replace("d",...
April 15th, 2012, 02:09 PM
I mean you should read it - say, like this:
April 14th, 2012, 11:14 AM
Changing the name of CommandType is also an option.
However, what I meant is that you need to replace the following two lines
private CommandType cmdType;
public CommandType CommandType
April 13th, 2012, 10:03 PM
Where is the definition of CommandType?
The error probably occurs because when you write
private CommandType cmdType;
It is actually equivalent to
April 13th, 2012, 09:49 PM
What is CommandType? Is this a built-in enum, or was it implemented by you?
Also, what is the type of Command.CommandType?
April 13th, 2012, 09:40 PM
On what line does this error occur?
Also, what is CommandType? Is this a built-in enum, or was it implemented by you? What about Command?
April 12th, 2012, 11:42 PM
Forget a second about JSON - read the content returned by your server(i.e., the content of the stream returned by response.GetResponseStream()). What is its content?
April 12th, 2012, 09:34 PM
The first thing you need to do is to figure out where the problem is - is in your code, or is it in the input JSON content provided by the server?
What is the JSON content returned by your request?...
April 10th, 2012, 12:18 PM
There's no magic - the computer can't guess how much time your method will take to run. You need to report as-you-go from within the external method.
For example, if there's a for loop of 10...
April 9th, 2012, 06:25 PM
Of course you can... just call the routine of the external class from within the BackgroundWorker's DoWork event.
April 9th, 2012, 04:30 PM
This might work:
April 9th, 2012, 04:03 PM
You don't need to create the file in advance, just create the file in the code.
In fact, you don't need to do anything different, because the StreamWriter class creates an empty file if the file (in...
April 9th, 2012, 01:28 PM
There are lots of ways to save data:
-write the data to files, and then read it
-save the data in a Database
In your case (highscore), writing to top scores to a file (either a...
April 9th, 2012, 09:57 AM
What is Pentagon (or Hexagon)? Is this an object of a class, or a name of a class?
Attach the definition of Pentagon & Hexagon please.
April 8th, 2012, 08:03 AM
//print the even numbers between 0 and 100
//print the odd numbers between 0 and 100
foreach(int i in Enumerable.Range(0, 50))
April 7th, 2012, 08:49 PM
There are two options to do that:
1. Define the Ship as a struct (yes, there are structs in C#). By doing that, the line testShip2 = testShip1; will actually copy the content of testShip1 into...
April 7th, 2012, 08:06 PM
//Somewhere in your code...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.