From 546831f72c757be52e263e5fe6bbb1561285942a Mon Sep 17 00:00:00 2001 From: Joe4evr Date: Mon, 14 Nov 2016 21:25:54 +0100 Subject: [PATCH] Added doc comments. --- .../Attributes/TypeReaderAttribute.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs b/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs index 33169f25c..29644ec85 100644 --- a/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs +++ b/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs @@ -3,12 +3,27 @@ using System.Reflection; namespace Discord.Commands { + /// + /// Allows to override the used for a parameter/type. + /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Parameter, AllowMultiple = true)] public class TypeReaderAttribute : Attribute { + /// + /// Type of the type that is read. + /// public Type Type { get; } + + /// + /// of the specified . + /// public TypeInfo OverridingTypeReader { get; } + /// + /// Specify a for a particular type. + /// + /// Type of the type to read. + /// Type of the that reads the type. public TypeReaderAttribute(Type forType, Type typeReader) { if (!typeof(TypeReader).GetTypeInfo().IsAssignableFrom(typeReader.GetTypeInfo()))