Change property object to another object

NachitoMax 406 Reputation points


Apologies for a potential poor title, not entirely sure how to describe it... Here is an example-

If i declare a property or Dim as an object like

Private Property MainReport As Report1  

Is there a way to change it to another report object but keep the same Property name?

MainReport = Report2  


.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
506 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,002 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 14,216 Reputation points Microsoft Vendor

    Hi @NachitoMax ,
    You can find those classes that can be converted to each other from the links below.
    Type conversion in .NET
    What is the relationship between Report1 and Report2?
    Best Regards.
    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments