Let's say there are   List&lt;string&gt; a1 = new List&lt;string&gt;();  List&lt;string&gt; a2 = new List&lt;string&gt;();   Is there way to do like this?  if (a1 == a2)  {  }
I would like to compare the contents of a couple of collections in my Equals method.  I have a Dictionary and an IList.  Is there a built-in method to do this?  Edited: I want to compare two Dictionaries and two ILists, so I think what equality means is clear - if the two dictionaries contain the same keys mapped to the same values, then they're equal.
How to Make Multi User Objects Single User? I duplicated a few objects with Alt+D and now I want to apply some modifiers to them, however I can't, because they are multi-user objects.  I tried U > Objects but I still can't apply the modifier.  How to make multi user objects single user? Is it possible to pass properties as "out" or "ref" parameters? Can I pass a property as an "out" or "ref" parameter if not then why not?   e.g.  Person p = new Person();    . . .  public void Test(out p.Name); How to remove comma and "and" before institutional last author after compiling BibTeX I have the following BibTeX entry:  @article{pubmed18800157,     author = {Heng, T.S. and Painter, M.W. and Immunological Genome Project Consortium},     title = {The {I}mmunological {G}enome {P}roject: networks of gene expression in immune cells.},     journal = {Nat. Immunol.},     pages = {1091-1094},     volume = {9},     number ={10},     year = {2008}, }, %\bibliographystyle{unsrt}   When the bibliography is generated, it puts comma a the end of the author:   Notice the comma after M.W. Painter. Is there a way to remove it? Split string into sentences using regex Does C# have extension properties? I am attempting to settle a friendly bet.  Would a pendulum swing indefinitely in a hypothetical vacuum (i.e. no air resistance) having a hypothetical frictionless bearing (i.e. no energy lost due to friction) assuming the following   The frictionless vacuum is on Earth (9.8 m/s^2). The pendulum is already in motion and no other external forces other than gravity act on the pendulum. How to make an alias permanent? I have created an alias:  alias shh='sqlplus hfdora/hfdora@hfd1"     After creating this alias I was able to enter my database only by typing shh.  But after closing my shell, I wasn't able to find the alias next time. Even after typing only alias, shh was not showing in the list.  Is there any file to make an alias permanent so that it will not be erased? Controversy over verb choice in "neither you nor I {is/am/are} in control" Let $F$ be a field, let $\omega$ be a primitive $n$th root of unity in an algebraic closure of $F$. If $a$ in $F$ is not an $m$th power in $F(\omega)$ for any $m\gt 1$ that divides $n$, how to show that $x^n -a$ is irreducible over $F$? What does "sudo apt-get update" do? I am wondering what sudo apt-get update does?  What does it update? How can I kill the Mirelurk Queen? The default is that clicking on the folder in the unity dock opens the home directory.   Since there are shortcuts for all the sub-folders of the home directory in the sidebar already, I'd prefer the default directory to move to a different location (~/Documents).  How can I achieve this? Express symmetric polynomial $\prod_{i < j} (X_i+X_j)$ in terms of elementary symmetric functions Exercise: Define a polynomial $\Sigma(X_1,\ldots,X_n)$ as \begin{align*} \Sigma(X_1,\ldots,X_n) = \prod_{i &lt; j} (X_i+X_j) \end{align*} This is a symmetric polynomial, quite clearly. I want to express $\Sigma$ as a polynomial in the elementary symmetric functions, for $n=2,3,4$. Case $n=2$ is trivial: $\Sigma(X_1,X_2)= \sigma_1 = X_1+X_2$. Case $n=3$ is easy. I write $\Sigma$ as follows: \begin{align*} \Sigma(X_1,X_2,X_3) = (\sigma_1 - X_1)(\sigma_1 - X_2)(\sigma_1 - X_3), \end{align*} then apply  formally, obtaining \begin{align*} \Sigma(X_1,X_2,X_3) = \sigma_1^3 - \sigma_1 \sigma_1^2 + \sigma_2 \sigma_1 - \sigma_3 = \sigma_2 \sigma_1 - \sigma_3. \end{align*} The case $n=4$ seems harder to me, and I'm unable to work it out. I hope there is some trick to avoid unnecessary computations. My attempt is to write down $\Sigma$ completely: \begin{align*} \Sigma = (X_1+X_2)(X_3+X_4)(X_1+X_4)(X_2+X_3)(X_2+X_4)(X_1+X_3) \end{align*} and then multiply factors in groups of two, obtaining: \begin{align*} \Sigma = (\sigma_2 - X_1X_2-X_3X_4)(\sigma_2 - X_1X_4 - X_2X_3)(\sigma_2 - X_2X_4-X_1X_3), \end{align*} but it doesn't seem to help much. How can I solve the exercise? No room for a new \dimen Any open subset of $\Bbb R$ is a countable union of disjoint open intervals I'm looking for the title of a Sci-Fi story (probably pre-1990) where a group is sent off into deep space and I believe unbeknownst to them it's a one-way journey.  In the course of the journey they all become very intelligent, they make psychoactive drugs from the plants on board, I recall that they discovered it's a one-way journey to test the affects of space travel, and they redesign/refit their engines and return to Earth.  Lame recall, sorry, that's all I got. Any help appreciated. Undo apt-get remove open* ubuntu 12.04 I'm trying to show that $\lvert \lVert x \rVert - \lVert y \rVert \rvert \overset{\heartsuit}{\leq} \lVert x-y \rVert$. A hint would be nice. How to Split Features in QGIS? Where is the known_hosts file for OpenSSH for Windows?