This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cat { | |
String meow() => 'meow'; | |
} | |
String foo(dynamic a) { | |
switch (a.runtimeType) { | |
case String: | |
return 'str'; | |
case int: | |
return 'int'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static IRenderService CreateJsReportInstance(bool useWeb) | |
{ | |
IReportingBinary binary = null; | |
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) | |
binary = jsreport.Binary.Ph2.JsReportBinary.GetBinary(); | |
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) | |
binary = jsreport.Binary.Linux.Ph2.JsReportBinary.GetBinary(); | |
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) | |
binary = jsreport.Binary.OSX.Ph2.JsReportBinary.GetBinary(); |