how to set property in csharp

Code Example - how to set property in csharp

                
                        public string CustomerId{ get; set; } // auto implemented property
                    
                
 

csharp object set property

                        
                                myObject.GetType().GetProperty(property).SetValue(myObject, "Bob", null);
                            
                        
 

Related code examples