Horje
c# create class from parent class Code Example
c# create class from parent class
public class ChildClass : ParentClass
{


    public ChildClass(ParentClass ch)
    {
        foreach (var prop in ch.GetType().GetProperties())
        {
            this.GetType().GetProperty(prop.Name).SetValue(this, prop.GetValue(ch, null), null);
        }
    }
}




Csharp

Related
wpf get dynamic resource from code Code Example wpf get dynamic resource from code Code Example
c# get distinct values all fields from list Code Example c# get distinct values all fields from list Code Example
change scale of an object unity Code Example change scale of an object unity Code Example
c# week refrences Code Example c# week refrences Code Example
razor concatonate inline Code Example razor concatonate inline Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10