Skip to content

Instantly share code, notes, and snippets.

@larizzatg
Created April 5, 2018 18:12
Show Gist options
  • Save larizzatg/ba6e88659c8e5a9dfb1eff84d7fe56c5 to your computer and use it in GitHub Desktop.
Save larizzatg/ba6e88659c8e5a9dfb1eff84d7fe56c5 to your computer and use it in GitHub Desktop.
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