[225] Syntax highlighting problem

I have a class inherited from ControllerBase

ControllerBase
  |
  -


IndexController


I have a code where


(in base class) ViewBase

ControllerBase controller;

public virtual ControllerBase Controller
....
....


(in my class) IndexView

public IndexController {
    get {
        return Controller as IndexController; <---- underlined in red saying
"Cannot cast expression of type ControllerBase to type IndexController
    }
}



3 comments
Comment actions Permalink

Please could you provide small camplete example

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Nat" <nat@do-not-spam.org> wrote in message
news:a4b668e725e48c816dee5f80b46@news.intellij.net...
>I have a class inherited from ControllerBase
>

ControllerBase
|
----- IndexController

>
>

I have a code where

>
>

(in base class) ViewBase

>

ControllerBase controller;

>

public virtual ControllerBase Controller
....
....

>
>

(in my class) IndexView

>

public IndexController {
   get { return Controller as IndexController; <---- underlined in red
saying "Cannot cast expression of type ControllerBase to type
IndexController
   }
}

>
>



0
Comment actions Permalink

Hello Eugene,

I can't reproduce it in a small example. It seems to happen with some files
only.

Nat

Please could you provide small camplete example



0
Comment actions Permalink

Hello Eugene,

I can't reproduce it in a small example. It seems to happen with some files
only.

Nat

Please could you provide small camplete example



0

Please sign in to leave a comment.