How to delete object?

I need to create a method of class that delete the instance. I want to know if there is any possible solution (even if it is not recommended) how to do this. Instance of this class will be stored in hundreds of different class. I will try to describe this, for example there will be … Read more

regular expression “.*[^a-zA-Z0-9_].*”

.*[^a-zA-Z0-9_].* will match the entire input as long as there is a non-alphanumeric/underscore somewhere in the input. [^a-zA-Z0-9_] will match only a single non-alphanumeric/underscore character (most likely the last one, if you’re using the default greedy matching) if it is somewhere in the input. Which one you want depends on the input and what you want to do … Read more

num1 >= 0x80 – What is 0x80?

It is an integer literal – it’s the hex number 80, which is decimal 128. The “0x” prefix indicates it being in hex. For more details, look at the section 2.4.4.2 of the C# language specification: “Integer literals”.

Categories c# Tags

System.ComponentModel.Win32Exception: Access is denied Error

Make sure your application pool identity account on your server has permissions to start that service. It works on your ASP.NET Development Server because it runs under your user account (admin) In a default IIS configuration, this account is Network service or ApplicationPoolIdentity (depending on IIS version) and usually cannot manage services. So, change the … Read more