Variable undefined

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
CyborgDE
Posts: 75
Joined: Wed Aug 12, 2015 9:21 pm

Variable undefined

Postby CyborgDE » Thu Nov 12, 2015 12:35 am

Hello,

why do I need this piece of code ?

Code: Select all

      CanSer = true;
                if (value == null)
                {
                    CanSer = false;
                }
                else
                {
                    if (CSharpXamlForHtml5.Environment.IsRunningInJavaScript)
                    {
                        JSIL.Verbatim.Expression("if (value === undefined) { CanSer = false; }");
                    }
                }


The value is a enum.

Regards, Uwe

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 35 guests

 

 

cron