A tad bit new to c#, need a little help

Okay so, I've created this method here

static void ElementData(string EleName, string EleSymbol, string EleNumber, string EleWeight) { Console.WriteLine("Element: " + EleName); Console.WriteLine("Symbol: " + EleSymbol); Console.WriteLine("Atomic Number: " + EleNumber); Console.WriteLine("Atomic Weight: " + EleWeight); NewElement(); } 

and I want to know if it's possible to pull the information that's passed through EleName and use it in another function.

Thanks all who can help

by asubaba via /r/csharp

Leave a Reply