public override int GetHashCode() { unchecked { return(((Friend1 != null ? Friend1.GetHashCode() : 0) * 397) ^ (Friend2 != null ? Friend2.GetHashCode() : 0)); } }
static void Main(string[] args) { Console.WriteLine("Hello World!"); //CallerInfoRegion var examapleCallerInfo = new Examaple2(); examapleCallerInfo.CallerInfo(); Console.WriteLine(examapleCallerInfo.CallerInfo()); //FriendlyAssemblyInteractionWithInternalClasses // [assembly: InternalsVisibleTo("TipTricks")] var friendAssembly = new Friend1(); Console.WriteLine(friendAssembly.RandomString); // }