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

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -