c# - Similar to Extension Methods Functionality - Can we extend properties -
extension methods great way extend functionality of type. there ways similar can used extend properties of class without inheriting new class.
no extension properties do not exist.
you can't via properties without inheriting new class. there extension methods, not extension properties (it may added @ future date). if don't want alter original class should inherit original class , add properties derived class.
Comments
Post a Comment