im new in c#. I know what is delegate (object which collect references of methods) but i dont know what is difference between delegate and event? Why use events and delegates? are there any difference?
I don't see advantages of using events over delegates, other than being syntactical sugar. Perhaps I am misunderstanding, but it seems that event is just a placeholder for delegate.  Would you explain to me the differences and when to use which?  What are the advantages and disadvantages? Our code is heavily rooted with events, and I want to get to the bottom of it.  When would you use delegates over events and vice versa? Please state your real world experience with both, say in the production code.
Regular Expression to split on spaces unless in quotes I would like to use the .Net Regex.Split method to split this input string into an array. It must split on whitespace unless it is enclosed in a quote.  Input:  Here is "my string"&nbsp;&nbsp;&nbsp;&nbsp;it has "six&nbsp;&nbsp;matches"  Expected output:   Here is my string it has six&nbsp;&nbsp;matches   What pattern do I need? Also do I need to specify any RegexOptions? How do I get a mesh data-block with modifiers and shape keys applied in Blender 2.8? I'm trying to update an exporter to work with Blender 2.8 but can't seem to get a mesh data-block modified by modifiers or shape keys. It always gives me the base mesh.  I'm currently using Object.to_mesh(). But reading Object.data or bmesh.from_mesh(obj) all returns only the base mesh. So what is the new function to call for getting a mesh data-block with the modifiers and shape keys applied? When to use "Well" or "Good" Spartan 6 DCM unstable clock output What is the dimension of $R[[X]]$ where $R$ is a Noetherian ring? If $R$ is a Noetherian ring then we know that the Krull dimension of the polynomial ring $R[X]$ is $\rm dim(R)+1.$ Is there any formula for the Krull dimension of the power series ring $R[[X]] $ When $R$ is a Noetherian ring ? If I'm playing the Hilltop farm in co-op - what farmer's mining level is used for the hilltop spawns? Making leaflet control open by default I'm using leaflet to display a map.  I have a control section that I'd like to be open by default, but I can't find a way to do it through the . Is there a way to do this? "going to" vs "will" getting exception while putting list data into the map Why does your reflection suddenly turn upside down while slowly walking away from a curved mirror? Many people should have realised, when looking into a concave curved mirror (or even a rather reflective spoon in that fact) at a close distance, you will see a slightly distorted reflection. But as you move further away, the image will suddenly become upside-down.  why is this? Great Expectations [is written vs has been written] by Charles Dickens I had a grammar quiz at the university today.    One of the questions was:     "Great Expectations" ____ by Charles Dickens.      a) is written   b) has been written   c) was written    Undoubtedly, the c option isn't correct since the time (the publication date) isn't stated or implied.  I crossed the a option out because it is neither a general truth nor a law. It is not a well-known fact to use present simple here.  Finally, I have chosen b. I still have doubts if a is the only right option.   It is unclear to me. Could you clarify it? Any help would be appreciated. Performing deep learning land cover classification using R? I am really new to Deep Learning and, unfortunately, I can't find example codes on land cover classification other than  where the author wrote a script in R for a large dataset.   The main reason that I am asking is because recently I found a few papers on Remote Sensing Image classification using Deep Learning and I was wondering if there were any R examples on that subject.  So, is there a code example, preferably a step-by-step, which I can use?  I found several git repos like  that can do Deep Learning classification with R, BUTT, I am still looking for a simple multi-spectral image segmentation method. An example of that can be found at  and I also found a similar question in  for which the answer is "use something else other than R if you can".  If I find anything that works today I will be posting a working answer. Pivot in sql server Is it correct to hyphenate with compound premodifiers? If so, where is the hyphen placed? Let $f(z)$ be a holomorphic function on a disk of radius $&gt;1$ about the origin, and suppose that $|f(z)|\leq 1$ for $z$ with $|z|=1$ and $\text{Re}(z)&gt;0$ and $|f(z)|\leq 2$ for $z$ with $|z|=1$ and $\text{Re}(z)\leq 0$.  How does one show the bound $|f(0)|\leq \sqrt{2}$? If $\mid a_{jj}\mid \gt \sum_{i \neq j} \mid a_{ij} \mid$ then vectors $a_1,\dots ,a_n \in \mathbb{R}^n$ are linearly indendent. Let $a_1,\dots ,a_n \in \mathbb{R}^n$ with $a_i = (a_{i1}, \dots , a_{in})$.  Show that when $\mid a_{jj}\mid \gt \sum_{i \neq j} \mid a_{ij} \mid \; \forall \; j\in \{1,\dots ,n\}$, then $a_1,\dots ,a_n$ are linearly independent.  I want to show that the matrix \begin{matrix} a_{11} &amp; a_{21} &amp; \cdots &amp; a_{n1} \\ a_{12} &amp; a_{22} &amp; \cdots &amp; a_{n2} \\ \vdots &amp; &amp; \ddots &amp; \\ a_{1n} &amp; a_{2n} &amp; \cdots &amp; a_{nn} \end{matrix} can be transformed into an upper triangular matrix with all entries in the main diagonal $\neq 0$.  For the cases $n=1$ and $n=2$ this is easy. However, I fail to show this for the general case; the problem being that the tranformations mess up the coefficients such that I can't use the assumption on the $a_{jj}$'s anymore.  I'm pretty sure that this has already been solved somewhere on here, but I don't know how to search for it. Differences between ways to express future actions What does "Could not find or load main class" mean? Error: ! Font OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 at 10.95pt not loadable: Met ric (TFM) file not found Is it possible to determine the exact date and time (if possible) of creation of an Apple ID?   Is there any official or unofficial way to establish this if you don't have the initial sign up information recorded?