.NET Portable TypeCast  3.1.0.4
A, easy-to-use tested, generic, portable, runtime-extensible, arbitrary type converter library
ConverterCollectionCause.cs
Go to the documentation of this file.
1 // <copyright file=mitlicense.md url=http://lsauer.mit-license.org/ >
2 // Lo Sauer, 2013-2016
3 // </copyright>
4 // <summary> A tested, generic, portable, runtime-extensible type converter library </summary
5 // <language> C# > 6.0 </language>
6 // <version> 3.1.0.2 </version>
7 // <author> Lorenz Lo Sauer; people credited in the sources </author>
8 // <project> https://github.com/lsauer/dotnet-portable-type-cast </project>
9 namespace Core.TypeCast
10 {
11  using System;
12 
13  using Core.Extensions;
14  using Core.TypeCast.Base;
15 
20  {
24  [Description("Indicates the default or unspecified value")]
25  None = 0,
26 
30  [Description("Indicates the default or unspecified value")]
31  Unknown = 1 << 0,
32 
36  [Description("Indicates the default or unspecified value")]
37  Default = 1 << 1,
38 
43  [Description("Indicates an internal error state that may be specified further in the InnerException property")]
44  InternalError = 1 << 2,
45 
50  [Description("The converter could not be added to the ConverterCollection")]
51  AddFailed = 1 << 3,
52 
56  [Description("Indicates a null reference for the collection argument")]
57  CollectionIsNull = 1 << 4,
58 
62  [Description("Indicates that the Converter, defined by the Input and Output conversion Types TIn --> TOut already exists")]
63  ConverterExists = 1 << 5,
64 
68  [Description("Indicates that the Converter or an passed argument to the converter is `null`")]
69  ConverterArgumentNull = 1 << 6,
70 
74  [Description("Indicates that a ConverterCollection method got passed an argument of a Type `T` that does not match TIn or TOut respectively")]
76 
80  [Description("The custom converter / conversion-related class has already been instantiated and added to the to the ConverterCollection")]
81  ConverterClassExists = 1 << 8,
82 
87  [Description(
88  "Indicates that the constructor the ConverterCollection class requires parameters for proper instancing, yet was invoked without parameters")]
90 
94  [Description("Indicates that the Converter function and default-value function is not set to a Delegate and null")]
95  ConverterFunctionsNull = 1 << 10,
96 
102  [Description("Indicates a Converter already exists for the specified input and output Types and was thus not added to the ConverterCollection")]
104  }
105 }
The converter could not be added to the ConverterCollection because another converter for the specifi...
Indicates that the constructor of a parent Converter<TIn, TOut> class T requires parameters for prope...
Indicates the default or unspecified value
Indicates an unknown or undefined flag
The custom converter / conversion-related class has already been instantiated and added to the to the...
Indicates that the Converter<TIn, TOut> or an passed argument to a Converter method is null ...
Indicates that the Converter.Function property and Converter.FunctionDefault is not set to a Delegate...
The converter could not be added to the ConverterCollection
Indicates an internal error state that may be specified further in the Exception.InnerException prope...
Indicates a null reference for the collection argument
Indicates a default or normal flag
ConverterCollectionCause
Contains the reasons for a ConverterCollectionException to be raised.
Indicates that a Converter<TIn, TOut> method got passed an argument of a System.TypeT that does not m...
Indicates that the Converter<TIn, TOut>, defined by the Input and Output conversion Types TIn --> TOu...