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
You can use the class keyword instead of struct to create a reference type in C Here is an example o... View full answer
Get step-by-step solutions from verified subject matter experts
