예제 #1
0
        /// <summary>
        /// This is my public generic float method summery
        /// </summary>
        /// <typeparam name="T"> A class of the type 'IMyInterface' </typeparam>
        /// <param name="classFromInterface">The parameter represents</param>
        /// <returns>the method returns the float of.</returns>
        public float PublicGenericFloatMethod <T>(T classFromInterface) where T : class, IMyInterface
        {
            IMyInterface myClassInterace = classFromInterface;

            return(myClassInterace.SecondFloatMethod(5));
        }