Sandbox

From LabNation Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

test

1234


<syntaxhighlight lang="php"> <?php

   $v = "string";    // sample initialization

?> html text <?

   echo $v;         // end of php code

?> </syntaxhighlight>

<syntaxhighlight lang="csharp">

       private void AndroidLoggerDequeuer()
       {
           Common.LogMessage l;
           while(logQueue.TryDequeue(out l))
           {
               switch(l.level) {
                   case Common.LogLevel.DEBUG:
                       Android.Util.Log.Debug(TAG, l.message);
                       break;
                   case Common.LogLevel.ERROR:
                       Android.Util.Log.Error(TAG, l.message);
                       break;
                   case Common.LogLevel.WARN:
                       Android.Util.Log.Warn(TAG, l.message);
                       break;
                   case Common.LogLevel.INFO:
                       Android.Util.Log.Info(TAG, l.message);
                       break;
                   default:
                       Android.Util.Log.Wtf(TAG, l.message);
                       break;
               }
           }
       }   

</syntaxhighlight>