What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-09-21 12:50:02
top-level statements must precede namespace and type declarations. [assembly-csharp]
//Yes. Top-level statements must precede namespaces and classes. //However, they're only supported in C# 9.0 with .NET 5.0 and VS 2019 v16.8 using System; Console.WriteLine("Hello World"); //Example above uses top-level statement instead of ma... Add solution -
C# 2021-09-20 16:37:02
jagged array c#
// A "multidimensional array" is essentially a matrix occupying one block of memory // The "jagged array" is an array of arrays // - with no restriction that the latter arrays need to be of the same dimension/length // - each of the... Add solution -
Other 2021-09-19 16:05:02
python sun tracking
# sunpos.pyimport mathdef sunpos(when, location, refraction):# Extract the passed data year, month, day, hour, minute, second, timezone = when latitude, longitude = location# Math typing shortcuts rad, deg = math.radians, math.degrees sin, cos... Add solution -
C# 2021-09-18 01:18:03
what is a return statement C#
/*return (C# Reference) The return statement terminates execution of the method in which it appears and returns control to the calling method. It can also return an optional value. If the method is a void type, the return statement can be omitted.*\ //(B... Add solution -
C# 2021-09-17 23:51:02
import C++ into C#
//you will be using the using using System.Runtime.InteropServices; //Before we begin you must understand you cannot truely import CPP. //Only static functions and structs for data can be imported. This //may mean writeing a quick CCP class to static na... Add solution