# jc-samples-dynamic-properties **Repository Path**: shouyong/jc-samples-dynamic-properties ## Basic Information - **Project Name**: jc-samples-dynamic-properties - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-14 - **Last Updated**: 2021-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Samples - Dynamic Properties Add properties to a C# object dynamically at runtime using code emission. ```csharp // Create a new Type based on a 'Todo' with additional dynamic properties. var factory = new DynamicTypeFactory(); var extendedType = factory.CreateNewTypeWithDynamicProperties(typeof(Todo), dynamicProperties); // Create an instance of the new extended Type. var extendedObject = Activator.CreateInstance(extendedType); ```