Skip to content
Discussion options

You must be logged in to vote

As @HaloFour mentioned this would be a breaking change. Here is why:

In example 0 below, your feature request would be unable to determine which Value to call. The one on A or the one on B?

Also, examples 1 and 2 while not breaking changes are reasons alone this feature should not be considered.

using System;
using System.Collections.Generic;
using System.Text;

class Program
{
	static void Main()
	{
		// 0. your issue would break existing code, such as with "new" members
		A a = new B();
		if (a is B)
		{
			// Which "Value" would it call? A or B? you proposal would break this.
			Console.WriteLine($"Your proposale would break \".Value\"...");
			Console.WriteLine($"Can't determine: {{ A = 

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@artelk
Comment options

@HaloFour
Comment options

@artelk
Comment options

@HaloFour
Comment options

@theunrepentantgeek
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mauler2025
Comment options

You must be logged in to vote
2 replies
@Joe4evr
Comment options

@DaZombieKiller
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants
Converted from issue

This discussion was converted from issue #3881 on September 11, 2020 15:14.