-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello Everyone,
I am using LINQ and I was wondering what is the best way to create an XDocument and then check to make sure that the XDocument actually exists, much like File.Exists?
String fileLoc = "path/to/file";
XDocument doc = new XDocument(fileLoc);
//Now I want to check to see if this file…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there,
I am consuming an xml response from a government gateway which contains a url in its root node twice (being firstly xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope" and also xmlns="http://www.govtalk.gov.uk/CM/envelope")
XDocument will only parse this if I pull out the second…
>>> More
-
as seen on ASP.net Weblogs
- Search for 'ASP.net Weblogs'
This post will focus on some advanced programming topics concerned with IaaS (Infrastructure as a Service) which provided as windows azure virtual machine (with its related resources like virtual disk and virtual network), you know that windows azure started as PaaS cloud platform but regarding to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a Dictionary<int, MyClass>
It contains 100,000 items
10,000 items value is populated whilst 90,000 are null.
I have this code:
var nullitems = MyInfoCollection.Where(x => x.Value == null).ToList();
nullitems.ForEach(x => LogMissedSequenceError(x.Key + 1));
private void LogMissedSequenceError(long…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an appplication that does a XDocument.Load from a 20mb file and then gets passed to a form to view its contents:
openFileDialog1.FileName = "";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
AuditFile = XDocument.Load(openFileDialog1.FileName);
…
>>> More