I have this type of variable :     What kind of return type should I write for my method? I wrote object but it didn't work out. Thanks.  EDIT :   I made such classes :   public class IlIlceTarife {     public string Il { get; set; }     public string Ilce { get; set; }     public string Tarife { get; set; } }  public class a {    public IlIlceTarife Name { get; set; }     public int Sayi { get; set; } }   And I made return type as this :   public List&lt;IEnumerable&lt;a&gt;&gt; TarifeGiver1(string il, string ilce)   And VS gave this error :   &gt; Cannot implicitly convert type &gt; 'System.Collections.Generic.List&lt;System.Collections.Generic.IEnumerable&lt;&lt;anonymous &gt; type: &lt;anonymous type: string Il, string Ilce, string Tarife&gt; Name, &gt; int Sayi&gt;&gt;&gt;' to &gt; 'System.Collections.Generic.List&lt;System.Collections.Generic.IEnumerable&lt;WebApplication2.Controllers.a&gt;&gt;'
Using the simple example below, what is the best way to return results from multiple tables using Linq to SQL?  Say I have two tables:  Dogs:   Name, Age, BreedId Breeds: BreedId, BreedName   I want to return all dogs with their BreedName.  I should get all dogs using something like this with no problems:  public IQueryable&lt;Dog&gt; GetDogs() {     var db = new DogDataContext(ConnectString);     var result = from d in db.Dogs                  join b in db.Breeds on d.BreedId equals b.BreedId                  select d;     return result; }   But if I want dogs with breeds and try this I have problems:  public IQueryable&lt;Dog&gt; GetDogsWithBreedNames() {     var db = new DogDataContext(ConnectString);     var result = from d in db.Dogs                  join b in db.Breeds on d.BreedId equals b.BreedId                  select new                         {                             Name = d.Name,                             BreedName = b.BreedName                         };     return result; }   Now I realize that the compiler won't let me return a set of anonymous types since it's expecting Dogs, but is there a way to return this without having to create a custom type?  Or do I have to create my own class for DogsWithBreedNames and specify that type in the select?  Or is there another easier way?
Conditional clause (then) In this first instance the main clause only stands alone if you  omit (then).  But in the other example it clearly has a main clause. So would this be classed as an embedded main clause as it only works as a independent clause if it's adjusted and or if it's joined with a dependent clause.  If I have enough money, then I will buy a new car.  If it rains, the picnic will be cancelled.  The picnic will be cancelled if it rains. Mid 2012 MBP shuts down claiming no power with charge at 30% or 40% or more I have two mid 2012 MBPs. Sometime last year they both started randomly shutting down and showing the 'please plug me in to power' image when trying to start them up. That would be fine if the batter was at 1% or less but this happens when the battery is at anywhere from 30% to as high as 48% full. The power cycle info says 500 cycles or so. Both of them do this. They are both patched current, always. I asked Apple they suggested NVRAM PRAM and SMC reset, as expected, which had no effect. Any ideas? Proper capitalization of commonly used acronyms and initialisms On my MacBook Pro I have found that several applications seem to share the value for a find.  For example, I searched 'applestackexchange' in Safari's unified address bar, then I switch to Xcode and click into a Find field.  The first word of my search in Safari then appears there.  iTerm2 and Sublime Text 2 also seem to participate in this sharing.  Running latest Mountain Lion on  a 2012 MBP. jsFiddle: no connection between html and js? Can't call simple function from button? User’s Guide vs Users’ Guide I’ve been looking over what has been posted regarding the use of ’s.   I used to be a Technical Writer (years ago). The title of one of our training documents was Users’ Guide.  Once, a coworker said every time he saw that title he expected users to start coming.    Never made any sense to me, but I have to admit that the majority of us didn't understand the use of s’ in place of ’s.  What is the difference? $$\lim_{n \to\infty} \frac{n!}{n^n}$$  I have a question: is it valid to use Stirling's Formula to prove convergence of the sequence? TikZ: turning edges into arrows using "child" notation I'm using TikZ for the first time to draw a simple Kripke model, and I'm using the child notation to produce new nodes. How can I turn my edges into arrows?  \begin{tikzpicture}   \node [circle,draw] (q0) {}   child {node [circle,draw] (q1) {$p$}     child {node [circle,draw] (q4) {$p$}       child {node [circle,draw] (q7) {$p\land q$}}       child {node [circle,draw] (q8) {$p\land q$}}       child {node (q9) {} edge from parent[-&gt;, dashed]}}     child {node [circle,draw] (q5) {$q$}}     child {node (q6) {} edge from parent[dashed]}}   child {node [circle,draw] (q2) {$p$}}   child {node (q3) {} edge from parent[dashed]}; \end{tikzpicture}   I know how to change the color or thickness of all edges by passing an option at the beginning of \begin{tikzpicture}, but I can't turn them into arrows.   Also, while we're at it, is there a way to label these edges? Or am I left with simply using node notation for all my nodes?  Thanks for all your help, Piotr Correct spelling of Polish surname Dziubenofska? My Polish grandmothers last name was Dziubenofska, but I know that's not how it is spelt! I'm looking for the proper spelling.   Can you help find it for me?  She came over to Ellis Island and they changed it on her to dziuk. This is only a prefix to the full name. are the uses of 'bare infinitive' & 'participle' same here? I saw him sing     I saw him singing    In the first example, the verb sing is used as a bare infinitive and in the following one it is exemplified as a present participle. My question is  if both of them are expressing the same meaning? What are the differences between vector graphics and raster graphics? Can one PC throw another? I've been looking around and I can't seem to find an automatic (i.e. buzz- or Twitter-like) way to follow users inside Stack Exchange. Why haven't the developers added such a feature? It could help beginner users follow other beginners with the same interests. We would be able to learn from each others' questions and pitfalls. Also, it would reduce double posting. Deciding whether $2^{\sqrt2}$ is irrational/transcendental Is $2^\sqrt{2}$ irrational? Is it transcendental? How to get reflections from 3D to show up on real images Andrew Price released a nice tutorial on how to nicely put 3D objects on top of a real image:   I have seen images, such as this:  which have 3D elements over images and have actual reflections from the object showing up on the wet asphalt.  How can this effect be achieved using render passes (or any other way)?  Here is another example (from ): $\sqrt[31]{12} +\sqrt[12]{31}$ is irrational Prove that $\sqrt[31]{12} +\sqrt[12]{31}$ is irrational.   I would assume that $\sqrt[31]{12} +\sqrt[12]{31}$ is rational and try to find a contradiction.  However, I don't know where to start. Can someone give me a tip on how to approach this problem? "To be subject to" vs. "to be subjected to" I read an article from  today which stated:     TTC workers are subject to alcohol and drug testing.   A later paragraph of the same article repeated it, except it used subjected to instead of subject to.  I have rarely seen the use of subjected to before. Is it legitimate in English as well? Why didn’t the author just keep it consistent by using subject to throughout the article? Does using varieties of forms enrich the expressions within an article? I am aware of what hyperfocal distance is and the general principles behind it. However, most of the tutorials I have seen and read regarding it make use of lenses with focus distance indicators. Unfortunately, neither of my lenses (Nikkor 18-55mm &amp; 35mm f1.8) have indicators.  I have read that you can 'cheat' and simply focus a third of the way into the shot (which I have done previously simply by spot-focusing on the lowest focus point in my VF). I also assume you could pace out the distance and note an object to focus on when you get back to the camera (though that might be easier said than done).  Does anyone have any suggestions on how to achieve maximum sharpness from front to back without focus distance markers. A new lens is not an option; global economic crisis and all that! Are there infinitely-many numbers that are both square and triangular? I just started to read "Friendly Introduction to Number Theory" but I am getting stuck in the first exercises.     1.1. The first two numbers that are both squares and triangles are 1 and 36. Find the next one and, if possible, the one after that. Can   you figure out an efficient way to find triangular–square numbers? Do   you think that there are infinitely many?     I found how to find out the number which is both square and triangle. (don't know if this is effective way)    However how can I answer "Do you think that there are infinitely many?"? I think I need to find the formula but no idea yet. Can you please help me? biblatex and autonum don't work together