MintPlayer.Reflection.Extensions 1.0.0

There is a newer version of this package available.
See the version list below for details.
Install-Package MintPlayer.Reflection.Extensions -Version 1.0.0
dotnet add package MintPlayer.Reflection.Extensions --version 1.0.0
<PackageReference Include="MintPlayer.Reflection.Extensions" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MintPlayer.Reflection.Extensions --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MintPlayer.Reflection.Extensions, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MintPlayer.Reflection.Extensions as a Cake Addin
#addin nuget:?package=MintPlayer.Reflection.Extensions&version=1.0.0

// Install MintPlayer.Reflection.Extensions as a Cake Tool
#tool nuget:?package=MintPlayer.Reflection.Extensions&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
namespace MintPlayer.Reflection.Extensions.Test
{
	class Program
	{
		static void Main(string[] args)
		{
			var teacher = new Teacher
			{
				FirstName = "John",
				LastName = "Roan",
				ClassName = "Math"
			};

			// Get type to investigate
			var type = teacher.GetType();
			var interfaces = type.GetInterfaces(true);

			foreach (var iface in interfaces)
				Console.WriteLine(iface.FullName);
		}
	}


	public interface IPerson
	{
		string FirstName { get; set; }
		string LastName { get; set; }
	}

	public class Person : IPerson
	{
		public string FirstName { get; set; }
		public string LastName { get; set; }
	}

	public interface ITeacher : INeedsClassRoom
	{
		string ClassName { get; set; }
	}

	public class Teacher : Person, ITeacher
	{
		public string ClassName { get; set; }
		public string ClassRoomType { get; set; }
	}

	public interface INeedsClassRoom
	{
		string ClassRoomType { get; set; }
	}
}

Result:

MintPlayer.Reflection.Extensions.Test.ITeacher
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MintPlayer.Reflection.Extensions:

Package Downloads
MintPlayer.MVVM

This package allows you to implement ViewModel Navigation and Dependency Injection in a Xamarin.Forms project

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 444 8/20/2020
1.0.0 1,639 8/6/2020