Question: I'm trying to somehow determine based on my interface what type came in and then do some validation on that type. Validation differes based on type that comes in.

```
  public static bool RequestIsValid(IPaymentRequest preAuthorizeRequest)
    {
        switch (preAuthorizeRequest)
        {
             case    
        }
    }

```

but either I can't do that with an interface or I'm not doing something that will make this work.

If I can't do that on an interface which looks like the probably because I think switch needs a concrete type, then how would I do this? Just regular if statements that check typeof?

Is that the only way?

Answer: 
`.myClass/DomElement > .myotherclassinsidethatelement` selects only the direct children of the parent class.

So: 

```
<div class='myClass'>
    <div class='someOther'>
        <div class='myotherclassinsidethatelement'></div>
    </div>
</div>

```

In this case, the `>` version won't select it.

See here: <http://jsfiddle.net/RRv7u/1/>
**UPDATE** 

The previous answer I gave was incorrect. I was under the impression that inheritance and nesting were the same thing, but they are not. If anyone else had this impression, here is a resource explaining what nesting is:

<http://www.htmldog.com/guides/css/intermediate/grouping/>

Here is another explaining what specificity is:

<http://www.htmldog.com/guides/css/intermediate/specificity/>

And here is a final link explaining specificity and inheritance:

<http://coding.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/>

**Previous answer:**

> 
> The angle bracket in CSS denotes inheritance. So when you say
> 
> 
> 
> ```
> .class1 > .class2 { styles }
> 
> ```
> 
> You're saying that the styles you're about to apply for class2 are
>  only going to be applied when class2 is a child of class1.
> 
> 
>