CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// What if you had a struct which could handle different types in a running program?
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
egal a=new egal();
a.save=true;
Console.WriteLine(a.save);
}
}
struct egal
{
string a;
bool b;
int c;
int last;
public var save // var isn't allowed in a struct. How to get it running?
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run