-
-
Save larizzatg/ba6e88659c8e5a9dfb1eff84d7fe56c5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using System; | |
using Yunen.Extensions; | |
namespace Yunen | |
{ | |
class Program | |
{ | |
static Mango originalMango = new Mango(); | |
static void Main(string[] args) | |
{ | |
Mango mango = new Mango(); | |
Mango mango2 = new Mango(); | |
mango2.DisplayData(); | |
OtherProgram.D(); | |
Console.ReadLine(); | |
} | |
} | |
public static class OtherProgram | |
{ | |
public static void D() | |
{ | |
Mango om = new Mango(); | |
om.DisplayData(); | |
} | |
} | |
} | |
using System; | |
namespace Yunen.Extensions | |
{ | |
public class Mango | |
{ | |
private static string mangoToken = ""; | |
private static int timesIssued = 0; | |
public Mango() | |
{ | |
mangoToken = "this is a random token 234i23429jf92j9d923lek2oOk2ok2"; | |
timesIssued++; | |
} | |
public void DisplayData() | |
{ | |
Console.WriteLine($"Mango Token: {mangoToken}\tTimes Issued: {timesIssued}"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment