Fixes #502 - cannot define implicit cast operator #878
Annotations
11 errors
The run was canceled by @SteveDunn.
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: 6RUbECRAN0.DotNet6_0.received.txt
Verified: 6RUbECRAN0.verified.txt
FileContent:
New:
Received: 6RUbECRAN0.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_partial_classCastOperator_NoneCastOperator_NonecharSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_partial_classCastOperator_NoneCastOperator_NonecharTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_partial_classCastOperator_NoneCastOperator_NonecharDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Char, Value = { _value }")]
public partial class _casting_public_partial_classCastOperator_NoneCastOperator_Nonechar : global::System.IEquatable<_casting_public_partial_classCastOperator_NoneCastOperator_Nonechar>, global::System.IEquatable<System.Char> , global::System.IComparable<_casting_public_partial_classCastOperator_NoneCastOperator_Nonechar>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Char _value;
/// <summary>
/// Gets the underlying <see cref="System.Char" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public System.Char Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_partial_classCastOperator_NoneCastOperator_Nonechar()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private _casting_public_partial_classCastOperator_NoneCastOperator_Nonechar(System.Char value)
{
_value = value;
_isInitialized = true;
}
/// <summary>
/// Builds an instance from the provided underlying type.
/// </summary>
/// <param name="value">The underly
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/GeneralStuff/snapshots/snap-v6.0
New:
- Received: GeneralTests.No_stack_trace_recording.DotNet6_0.received.txt
Verified: GeneralTests.No_stack_trace_recording.verified.txt
FileContent:
New:
Received: GeneralTests.No_stack_trace_recording.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(CustomerIdSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(CustomerIdTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(CustomerIdDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.String, Value = { _value }")]
public readonly partial record struct CustomerId : global::System.IEquatable<CustomerId>, global::System.IEquatable<System.String> , global::System.IComparable<CustomerId>, global::System.IComparable
{
private readonly global::System.Boolean _isInitialized;
private readonly System.String _value;
/// <summary>
/// Gets the underlying <see cref="System.String" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.String Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
init
{
if (value is null)
{
throw new global::Vogen.ValueObjectValidationException("Cannot create a value object with null.");
}
_value = value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public CustomerId()
{
#if DEBUG
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CustomerId(System.String value)
{
_value = value;
_isInitialized = true;
}
/// <summary>
/// Builds an instance from the provided underlying type.
/// </summary>
/// <param name="value">The underlying type.</param>
/// <returns>An instance of this type.</returns>
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: VYdZNM6fiK.DotNet6_0.received.txt
Verified: VYdZNM6fiK.verified.txt
FileContent:
New:
Received: VYdZNM6fiK.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitlongSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitlongTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitlongDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int64, Value = { _value }")]
public partial struct _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitlong : global::System.IEquatable<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitlong>, global::System.IEquatable<System.Int64> , global::System.IComparable<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitlong>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int64 _value;
/// <summary>
/// Gets the underlying <see cref="System.Int64" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Int64 Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitlong()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitlong(System.Int64 value)
{
_value = value;
_isInitialized = true;
}
/// <summary>
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Config/snapshots/snap-v6.0
New:
- Received: GlobalConfigTests.Disable_stack_trace_recoding_in_debug.DotNet6_0.received.txt
Verified: GlobalConfigTests.Disable_stack_trace_recoding_in_debug.verified.txt
FileContent:
New:
Received: GlobalConfigTests.Disable_stack_trace_recoding_in_debug.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(CustomerIdSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(CustomerIdTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(CustomerIdDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")]
public partial struct CustomerId : global::System.IEquatable<CustomerId>, global::System.IEquatable<System.Int32> , global::System.IComparable<CustomerId>, global::System.IComparable
{
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
/// <summary>
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Int32 Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public CustomerId()
{
#if DEBUG
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CustomerId(System.Int32 value)
{
_value = value;
_isInitialized = true;
}
/// <summary>
/// Builds an instance from the provided underlying type.
/// </summary>
/// <param name="value">The underlying type.</param>
/// <returns>An instance of this type.</returns>
public static CustomerId From(System.Int32 value)
{
CustomerId instance = new CustomerId(value);
return instance;
}
public static explicit operator CustomerId(System.Int32 value) => From(value);
public static explicit operator System.Int32(CustomerId v
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: nxGtxX6X0E.DotNet6_0.received.txt
Verified: nxGtxX6X0E.verified.txt
FileContent:
New:
Received: nxGtxX6X0E.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitshortSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitshortTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitshortDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int16, Value = { _value }")]
public readonly partial record struct _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitshort : global::System.IEquatable<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitshort>, global::System.IEquatable<System.Int16> , global::System.IComparable<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitshort>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int16 _value;
/// <summary>
/// Gets the underlying <see cref="System.Int16" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Int16 Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
init
{
_value = value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitshort()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: Y02xdh60DZ.DotNet6_0.received.txt
Verified: Y02xdh60DZ.verified.txt
FileContent:
New:
Received: Y02xdh60DZ.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneshortSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneshortTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneshortDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int16, Value = { _value }")]
public sealed partial class _casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Noneshort : global::System.IEquatable<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Noneshort>, global::System.IEquatable<System.Int16> , global::System.IComparable<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Noneshort>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int16 _value;
/// <summary>
/// Gets the underlying <see cref="System.Int16" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public System.Int16 Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Noneshort()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private _casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Noneshort(System.Int16 value)
{
_value = value;
_isInitialized = true;
}
/// <summary>
/// Builds an i
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: x5GObXsHX3.DotNet6_0.received.txt
Verified: x5GObXsHX3.verified.txt
FileContent:
New:
Received: x5GObXsHX3.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_partial_classCastOperator_ExplicitCastOperator_ExplicitdecimalSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_partial_classCastOperator_ExplicitCastOperator_ExplicitdecimalTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_partial_classCastOperator_ExplicitCastOperator_ExplicitdecimalDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Decimal, Value = { _value }")]
public partial class _casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitdecimal : global::System.IEquatable<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitdecimal>, global::System.IEquatable<System.Decimal> , global::System.IComparable<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitdecimal>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Decimal _value;
/// <summary>
/// Gets the underlying <see cref="System.Decimal" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public System.Decimal Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitdecimal()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private _casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitdecimal(System.Decimal value)
{
_value = value;
_isInitialized = true;
}
/// <summary>
/// Builds an inst
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: nXVnmgnpP3.DotNet6_0.received.txt
Verified: nXVnmgnpP3.verified.txt
FileContent:
New:
Received: nXVnmgnpP3.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ImplicitlongSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ImplicitlongTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ImplicitlongDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int64, Value = { _value }")]
public partial record class _casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitlong : global::System.IEquatable<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitlong>, global::System.IEquatable<System.Int64> , global::System.IComparable<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitlong>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int64 _value;
/// <summary>
/// Gets the underlying <see cref="System.Int64" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public System.Int64 Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
init
{
_value = value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitlong()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private _casting_public_p
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: 7AkDSy71WO.DotNet6_0.received.txt
Verified: 7AkDSy71WO.verified.txt
FileContent:
New:
Received: 7AkDSy71WO.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneboolSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneboolTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneboolDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Boolean, Value = { _value }")]
public readonly partial record struct _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebool : global::System.IEquatable<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebool>, global::System.IEquatable<System.Boolean> , global::System.IComparable<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebool>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Boolean _value;
/// <summary>
/// Gets the underlying <see cref="System.Boolean" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Boolean Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
init
{
_value = value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebool()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = def
|
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Casting/snapshots/snap-v6.0
New:
- Received: BFyf3aR2eK.DotNet6_0.received.txt
Verified: BFyf3aR2eK.verified.txt
FileContent:
New:
Received: BFyf3aR2eK.DotNet6_0.received.txt
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0618
// Suppress warnings for 'Override methods on comparable types'.
#pragma warning disable CA1036
// Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators
#pragma warning disable MA0097
// Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.'
// The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations.
#pragma warning disable CS8669
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Vogen;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_NoneSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_NoneTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_NoneDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")]
public sealed partial class _casting_public_sealed_partial_classCastOperator_NoneCastOperator_None : global::System.IEquatable<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_None>, global::System.IEquatable<System.Int32> , global::System.IComparable<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_None>, global::System.IComparable
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
/// <summary>
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// </summary>
public System.Int32 Value
{
[global::System.Diagnostics.DebuggerStepThroughAttribute]
get
{
EnsureInitialized();
return _value;
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public _casting_public_sealed_partial_classCastOperator_NoneCastOperator_None()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private _casting_public_sealed_partial_classCastOperator_NoneCastOperator_None(System.Int32 value)
{
_value = value;
_isInitialized = true;
}
/// <summary>
/// Builds an instance from the provided underlying type.
/// </summary>
|
The logs for this run have expired and are no longer available.
Loading