Condor.Generator.Utils
0.0.3
dotnet add package Condor.Generator.Utils --version 0.0.3
NuGet\Install-Package Condor.Generator.Utils -Version 0.0.3
<PackageReference Include="Condor.Generator.Utils" Version="0.0.3" />
<PackageVersion Include="Condor.Generator.Utils" Version="0.0.3" />
<PackageReference Include="Condor.Generator.Utils" />
paket add Condor.Generator.Utils --version 0.0.3
#r "nuget: Condor.Generator.Utils, 0.0.3"
#:package Condor.Generator.Utils@0.0.3
#addin nuget:?package=Condor.Generator.Utils&version=0.0.3
#tool nuget:?package=Condor.Generator.Utils&version=0.0.3
Condor.Generator.Utils
Provide templating engine based on Handlebars.Net (https://github.com/Handlebars-Net)
Define strutures for carrying info about types, fields, properties, ... to pass to generators
Handlebars.Net custom helpers
See code for more information
GeneratedTypeInfo
Abstract class that should be derived by generator project | Property | Description | | -------- | ----------- | | OutputNamespace | Often based on the partial decorated class | | ClassName | Often based on the partial decorated class, maybe suffixed by a keyword to describe the intention (ex: Visitor) |
TargetTypeInfo
| Property | Description |
|---|---|
| ContainingAssembly | full name of the containing assembly |
| ContainingNamespace | full name of the containing namespace FullyQualifiedFormat without global name style |
| SanitizeTypeName | Sanitized type name (trimming Base & I) |
| SanitizeTypeNameAsArg | SanitizeTypeName lowerized |
| GenericBaseTypeName | MinimallyQualifiedFormat without generic (remove <T> C#, (Of T) VB.Net) |
| TypeName | MinimallyQualifiedFormat with ExpandNullable |
| TypeFullName | FullyQualifiedFormat with ExpandNullable |
| TypeDefinition | MinimallyQualifiedFormat with IncludeVariance, without IncludeContainingType |
| Interfaces | TargetTypeInfo collection of interfaces directly on the scoped type |
| AllInterfaces | TargetTypeInfo collection of all implemnented interfaces on the scoped type |
| IsNullable | boolean indicating the type nullabilty |
| IsArray | boolean indicating the type array |
| ElementType | if scoped type is array, get the TargetTypeInfo of the stored element type |
| IsGeneric | boolean indicating the type is generic or not |
| IsAbstract | boolean indicating the type is abstract definition |
| IsRecord | boolean indicating the type is record definition |
| GenericTypes | TypeArgumentInfo collection of generic type arguments of the scoped type |
AttributeInfo
| Property | Description |
|---|---|
| AttributeType | TargetTypeInfo of the attribute |
| Constructor | ActionInfo of the attribute's constructor |
| ConstructorArguments | ArgumentInfo collection of the scoped attribute |
| NamedArguments | ArgumentInfo collection of the scoped attribute |
MemberInfo
| Property | Description |
|---|---|
| MemberName | name of the member |
| IsConstant | boolean indicating if member is defined as constant |
| IsNullable | boolean indicating if member type is nullable |
| MemberType | TargetTypeInfo of the member type |
| Attributes | AttributeInfo collection of the member's attributes |
ActionInfo
| Property | Description |
|---|---|
| IsStatic | boolean |
| Name | method string name |
| Definition | MinimallyQualifiedFormat |
| ReturnType | TargetTypeInfo |
| TypeArguments | TargetTypeInfo collection |
| Parameters | ParameterInfo collection |
| Attributes | AttributeInfo collection |
| AccessibilityModifier | string |
| IsVoid | boolean |
ArgumentInfo
| Property | Description |
|---|---|
| ArgumentValue | value if not null |
| IsNull | Is null value |
| ArgumentType | TargetTypeInfo |
| ArgumentName | Argument name |
TypeArgumentInfo
| Property | Description |
|---|---|
| IsVarianceUnspecified | boolean if variance is None |
| IsIn | boolean if variance is In |
| IsOut | boolean if variance is Out |
| Name | name of typeArgument |
| HasConstraint | boolean indicating if type has constraints |
| Contraints | TargetTypeInfo collection |
| IsNullable | boolean |
ParameterInfo
| Property | Description |
|---|---|
| ParameterName | name of the parameter |
| HasDefaultExpression | boolean |
| DefaultExpression | default expression value or null |
| ParameterType | TargetTypeInfo |
| IsOptional | boolean |
| IsParams | boolean |
| IsExtension | boolean |
| IsRefReadOnly | boolean |
| IsIn | boolean if variance is In |
| IsOut | boolean if variance is Out |
| IsRef | boolean is ref type |
| Attributes | AttributeInfo collection |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- RobinMustache (>= 0.0.9)
- RobinMustache.Abstractions (>= 0.0.5)
- RobinMustache.Generators.Accessor (>= 0.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Condor.Generator.Utils:
| Package | Downloads |
|---|---|
|
Condor.Contracts.Generator
Contracts generator |
|
|
Condor.Files.Generator
Files pattern generator |
GitHub repositories
This package is not used by any popular GitHub repositories.