My sister was diagnosed with dementia in 2010 and I did not find out ab out it until 2012 after her husband died. I took care of her after he died and found out she kept getting demoted on her job as a manager. I tried to take care of her but she could not stay alone at night and resented some of the care takers coming in. I am 78 and could not take care of her full time and put her in assistant living memory care at Brookdale in Northern Ky and I do not think they took good care of her letting her get UTIs and being abused by another patient. In one day she fell at facility and never regained any normalcy and could not walk. She had some hydrocyphulus but since she has begun tearing her hair out and agitated and medicines are not working they want to put her on comfort care at the nursing home. They do not think she could go underanthesetic to getMRI. They want to give her on haloperidol
Now run the program and get the result as in Figure
Figure Output of program 2
Now let's see one more example that shows that the Equals() method is an extension method of the string class when you assign a null value to the string variable and using that variable the Equals() method then gets an exception of a null reference so you must be sure that your variable doesn’t have null values when calling the Equals() method. When your one variable contains a null value then you should use that variable as an argument for the Equals() method.
Figure Null Reference Exception
The rule of thumb is that for nearly all reference types, use Equals when you want to test the equality rather than reference identity. The exception is for strings; comparing strings with == does make things much simpler and more readable but you need to remember that both sides of the operator must be expressions of type string for the comparison to work properly.