/ Published in: Visual Basic
This copies all property values from Class A to Class B. Useful if you have many unrelated classes that share similar properties and you are constantly writing code like:
shirt.Color = pants.Color
shirt.Pattern = pants.Pattern
shirt.Style = pants.Style
Could change to:
pants.CopyPropertiesTo(shirt)
shirt.Color = pants.Color
shirt.Pattern = pants.Pattern
shirt.Style = pants.Style
Could change to:
pants.CopyPropertiesTo(shirt)