Understanding C# proper uses of 'using' keyword
What are the uses of "using" in C#?
The main effect will be non-significant if the interaction is significant? How did Harry become a Horcrux? To make a Horcrux, certainly murder can't be the only requirement. It is obvious a proper spell is needed for completing a Horcrux. Voldemort could have made a thousand Horcruxes, as he had already murdered a thousand people. But, how on earth did Harry become a Horcrux, with Voldemort murdering his mom and not using the Horcrux-making spell? Certainly Avada Kedavra is not the spell used for making a Horcrux. Are undead and creatures immune to charm excluded from the HP count of Sleep? From the spell description:     Sleep (...) Creatures within 20 feet of a point you choose within range are affected in ascending order of their current hit points (ignoring unconscious creatures). Starting with the creature that has the lowest current hit points,(...) Subtract each creature’s hit points from the total before moving on to the creature with the next lowest hit points. A creature’s hit points must be equal to or less than the remaining total for that creature   to be affected. Undead and creatures immune to being charmed aren’t affected by this spell. (PH p.276)   Now, to build the ascending order of their current hitpoints, the spell instructs to count everyone in area of effect, but only ignore unconscous creatures. Then later on it says that Undead and creatures immune to being charmed aren't affected.  Are those two latter kinds of creatures excluded from the roll of current HP by default? Following the "if they were it would say so" philosophy of Sage Advice, it doesn't seem so to me. How do I Deserialize this XML document:  &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Cars&gt;   &lt;Car&gt;     &lt;StockNumber&gt;1020&lt;/StockNumber&gt;     &lt;Make&gt;Nissan&lt;/Make&gt;     &lt;Model&gt;Sentra&lt;/Model&gt;   &lt;/Car&gt;   &lt;Car&gt;     &lt;StockNumber&gt;1010&lt;/StockNumber&gt;     &lt;Make&gt;Toyota&lt;/Make&gt;     &lt;Model&gt;Corolla&lt;/Model&gt;   &lt;/Car&gt;   &lt;Car&gt;     &lt;StockNumber&gt;1111&lt;/StockNumber&gt;     &lt;Make&gt;Honda&lt;/Make&gt;     &lt;Model&gt;Accord&lt;/Model&gt;   &lt;/Car&gt; &lt;/Cars&gt;   I have this:  [Serializable()] public class Car {     [System.Xml.Serialization.XmlElementAttribute("StockNumber")]     public string StockNumber{ get; set; }      [System.Xml.Serialization.XmlElementAttribute("Make")]     public string Make{ get; set; }      [System.Xml.Serialization.XmlElementAttribute("Model")]     public string Model{ get; set; } }   .  [System.Xml.Serialization.XmlRootAttribute("Cars", Namespace = "", IsNullable = false)] public class Cars {     [XmlArrayItem(typeof(Car))]     public Car[] Car { get; set; }  }   .  public class CarSerializer {     public Cars Deserialize()     {         Cars[] cars = null;         string path = HttpContext.Current.ApplicationInstance.Server.MapPath("~/App_Data/") + "cars.xml";          XmlSerializer serializer = new XmlSerializer(typeof(Cars[]));          StreamReader reader = new StreamReader(path);         reader.ReadToEnd();         cars = (Cars[])serializer.Deserialize(reader);         reader.Close();          return cars;     } }   that don't seem to work :-( How do I upgrade an iPhone 4 from iOS 7.1.2 to iOS 8 or 9 I have an iPhone 4 and I need to upgrade from 7.1.2 to iOS 8 or 9. I would like to ask how I can get iOS 8. When do exactly we choose to use have or take? They look sort of having similar context     I have a bath      I take a bath   And by the way, I saw that      I take a chance   Can't be transformed to     I have a chance   Can it?   *Moreover, If there's a verb used like the bath, it means the bath is no more a verb but a noun right?  Also very important is that , can they be applied randomly to *a verb or a noun?  Like :  *  - I take a choose   Or    I take an option ( this one makes sense but I mean in the context of delexical verb)   ?  *EDIT: My mistake , bath is actually not "a verb transformed to a noun, but its absolutely a noun."  So my concerns would be if they can be used interchangeably? And be applied to random noun? Side effects of changing blackboard bold font with \setmathfont Flag indicator present on Meta, but no flags visible I have a PC with an OEM install of Win 8 updated to 8.1.  It has 3 physical hard drives in it.  The drive where Windows is installed has a LOT of partitions on it already.    Can I install Ubuntu on a different physical hard drive than Windows, and be able to dual-boot?  I am able to boot to a live USB of Ubuntu 14.04, so I think I'm about ready to proceed.  But if I can make my installation easier by using a different physical drive, I'd like to do that. Closing Reject Suggested Edit dialogue freezes review process How to secure my laptop so that hacking by physical access is not possible? How can blackbody radition be explained by quantization? I don't understand why quantization makes a peak on the blackbody radiation curve (so there is no ) and the relationship between that peak and quantization concept.  When the blackbody is heated, it starts to glow. All atoms start to vibrate. Total heating energy must be divided and equally shared by all atoms of blackbody. Right?  But what happens next?  Do some atoms get much more energy to radiate at higher frequency and waste the energy? What happens at the atomic level, so quantization can explain it? What does classical physics claim, so it can not explain the radiation curve? Why do we say "Eastern Europe" but "East Asia"? Converting a Uniform Distribution to a Normal Distribution How can I convert a uniform distribution (as most random number generators produce, e.g. between 0.0 and 1.0) into a normal distribution? What if I want a mean and standard deviation of my choosing? Watched screen recording but it's not saved to the desktop I recently recorded a session with my dad. I stopped the recording after the session ended (with the setting set to save to Desktop), clicked the icon that appeared on the lower right corner to open the file, and played back a few minutes to make sure it worked. I then clicked Share to send it via AirDrop to my computer, which did not work; the status remained &quot;cancelled&quot; despite my efforts. I assumed I'd be able to access it through my phone by sending it through a third app, so I pressed cancel on the AirDrop pop-up window. The entire screen recording closed and (apparently) vanished forever after the action. I'm extremely frustrated because I can't seem to locate this video. What's a word for someone who is constantly asking for same thing? Hi I'm looking for a word for someone who is constantly asking for something and keeps wanting updates about it. The closest words I can think of is pushy and, to a lesser extent, annoying. But clearly these words don't directly mean what I intend. Detecting TCP Client Disconnect Schur's theorem and numbers Can you give a proof for bounds of  $S(r)$? Please suggest me articles to have better idea of Schur's theorem (Ramsey theory). Integral $\int_{1}^{2011} \frac{\sqrt{x}}{\sqrt{2012 - x} + \sqrt{x}}dx$ Evaluate:  $$\int_{1}^{2011} \frac{\sqrt{x}}{\sqrt{2012 - x} + \sqrt{x}}dx$$  Using real methods only.  I am not sure what to do.  I tried finding a power series, which was too ugly.  I just need some hints, not an answer to do this integral, this is from the MIT Integration bee 2012. Dryer Outlet - 4 prong to 3 prong Our new dryer has 3 prongs vs. 4. We are changing to the new 3 prong dryer outlet, but want to make sure we are grounding. The wires coming from the wall our white, red &amp; black - the the copper wire. Do I need to ground it?? Thank you! Molly