Change the data type of a Property of base class in derived class

essamce 621 Reputation points
2020-08-19T16:03:44.287+00:00

hi, I want to Change the data type of a Property of base class in derived class like so

    public abstract class A
    {

        public string Name { get; set; }
    }

    public abstract class B : A
    {

        public char[ ] Name { get; set; }
    }
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,798 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-08-20T02:25:50.2+00:00

    Hello,

    Welcome to Microsoft Q&A.

    Your question about C# grammar and Q&A platform has not yet supported this topic.

    You can ask questions in the Visual C# forum, where the technical staff are actively answering related questions.

    Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.