Question: in C# Replace the struct keyword with a reference type that will allowus to measure equality BY ADDRESS. (ref cannot be used) whatis another keyword

in C#

Replace the struct keyword with a reference type that will allowus to measure equality BY ADDRESS. ("ref" cannot be used) whatis another keyword with a reference that will allow us to measureequality by address?

ref struct YetAnotherPerson

{

// Properties

public string FirstName { get; set; }

public string LastName { get; set; }

public int Age { get; set; }

}

Step by Step Solution

3.30 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

You can use the class keyword instead of struct to create a reference type in C Here is an example o... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!