A lot of comments.

This commit is contained in:
Holger Boerchers
2018-08-12 13:44:42 +02:00
parent 7326ff6684
commit c381375dbd
7 changed files with 94 additions and 35 deletions

View File

@@ -1,20 +1,31 @@
using System;
namespace Playground
namespace SmallInjectorDemo
{
/// <summary>
/// Implementation of <see cref="IServiceOne"/>.
/// </summary>
public class ServiceOne : IServiceOne
{
private const string MyName = nameof(ServiceOne);
private readonly Guid _guid;
/// <summary>
/// Creates a new instance of <see cref="ServiceOne"/>.
/// </summary>
public ServiceOne()
{
_guid = Guid.NewGuid();
Console.WriteLine(nameof(ServiceOne) + ".ctor\t\tId: " + _guid);
Console.WriteLine(MyName + ".ctor\t\tId: " + _guid);
}
public override string ToString() => nameof(ServiceOne) + ".ToString()\tId: " + _guid;
/// <inheritdoc />
public override string ToString() => MyName + ".ToString()\tId: " + _guid;
}
/// <summary>
/// Interface for service one.
/// </summary>
public interface IServiceOne
{