Παρουσίαση με Ετικέτες

HowTo: Use latest C# features in MVC5 Razor views (.cshtml)
16 Απριλίου 19 03:53 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Having recently updated an ASP.net MVC web app from MVC4 to MVC5 and from .NET 4.5 to .NET 4.7.2 I was expecting Razor views (.cshtml files) to use the latest C# compiler, especially since at Properties/Build/Advanced option for the web project one read “C# latest major version (default)”. However that was not the case and […]
Δημοσίευση στην κατηγορία: , , , , , , ,
HowTo: show inner exception message if available, else outer one
09 Δεκεμβρίου 15 05:44 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Sometimes when you catch an exception in .NET, the message it prints out isn’t very informative, since it is wrapping another exception that had been thrown a bit inner in the code. That exception is in that case accessible via InnerException of the Exception instance. That inner exception is also an Exception, so one would […]
Δημοσίευση στην κατηγορία: , , , , , ,
HowTo: Call C# method from class that has same name as namespace
06 Ιουλίου 14 03:25 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
In the C# compiler error case shown above, CaptionsGrid class exists in namespace ClipFlair.CaptionsGrid so in the code we have “using ClipFlair.CaptionsGrid;” at the top of the file where we want to call the “SaveAudio” static method of CaptionsGrid class. But then we get the error “The type or namespace name ‘…’ does not exist […]
Δημοσίευση στην κατηγορία: , , , , , , , ,

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές