Complete the code to declare a value type struct.
public struct [1] { public int Number; }class instead of struct to declare a value type.The struct keyword declares a value type in C#.
Complete the code to create a reference type instance.
MyClass obj = new [1]();struct instead of the class name.To create an instance of a class (reference type), use the class name with new.
Fix the error in the code to correctly copy a value type.
MyStruct copy = original[1];== instead of assignment =.Use the assignment operator = to copy value types.
Fill both blanks to create a method that accepts a value type and returns a modified copy.
public MyStruct Modify([1] input) { input.Number [2] 10; return input; }
-= instead of addition.The method takes a value type MyStruct and adds 10 to its Number field using +=.
Fill all three blanks to create a dictionary comprehension that maps strings to their lengths if length is greater than 3.
var lengths = words.Where(word => word.Length [3] 3).ToDictionary([1] => [1], [1] => [2]);
The dictionary maps each word to its word.Length only if the length is greater than 3.
