Esempio n. 1
0
        //[Benchmark]
        public string InterfaceCall()
        {
            var x = new NonIFormattableStruct();

            return(Interfaced(x));
        }
Esempio n. 2
0
        public string StringFormat_DirectBox()
        {
            var structTest = new NonIFormattableStruct();

            return($"{structTest}");
        }
Esempio n. 3
0
        //[Benchmark]
        public string ConstrainedCall()
        {
            var x = new NonIFormattableStruct();

            return(Constrained(x));
        }
Esempio n. 4
0
        public string StringFormat_CallsToString()
        {
            var structTest = new NonIFormattableStruct();

            return($"{structTest.ToString()}");
        }