When used as a declaration modifier, the new keyword explicitly hides a member that is inherited from a base class. When you hide an inherited member, the derived version of the member replaces the base class version. Although you can hide members without using the new modifier, you get a compiler warning. If you use new to explicitly hide a member, it suppresses this warning.
مطالب مشابه
- اشتراکها
بررسی Virtual events در #Cاشتراکها
1.Visual Studio 2019 RC منتشر شداشتراکها
Visual Studio 2019 version 16.3.3 منتشر شداشتراکها
AutoMapper 8.1.0 منتشر شداشتراکها
انواع Target Framework ها در NET 5.اشتراکها
انتشار EF6.1.3 RTMمطالب
C# 6 - The nameof Operatorمطالب
کوئری نویسی در EF Core - قسمت هشتم - کوئریهای بازگشتیمطالب
کوئری نویسی در EF Core - قسمت اول - تشکیل بانک اطلاعاتی و مقدار دهی اولیهی آنمطالب
Value Types ارجاعی در C# 7.2