File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ private void AddDeepConstructor(TypeDefinition type)
9090
9191 Func < TypeReference , IEnumerable < Instruction > > baseCopyFunc = null ;
9292
93- if ( type . BaseType . Resolve ( ) . MetadataToken . Equals ( TypeSystem . ObjectDefinition . MetadataToken ) )
93+ if ( type . BaseType . Resolve ( ) . MetadataToken == TypeSystem . ObjectDefinition . MetadataToken )
9494 {
9595 processor . Emit ( OpCodes . Ldarg_0 ) ;
9696 processor . Emit ( OpCodes . Call , ImportDefaultConstructor ( TypeSystem . ObjectDefinition ) ) ;
@@ -124,7 +124,9 @@ private void AddDeepConstructor(TypeDefinition type)
124124 baseCopyFunc = reference => CopySet ( reference , ValueSource . New ( ) , ValueTarget . New ( ) ) ;
125125 }
126126 else
127- throw new WeavingException ( Message . NoCopyConstructorFound ( type . BaseType ) ) ;
127+ throw new WeavingException ( Message . NoCopyConstructorFound ( type . BaseType )
128+ + Environment . NewLine
129+ + $ "AddDeepConstructor to { type } : { type . BaseType } ={ type . BaseType . Resolve ( ) . MetadataToken } ({ TypeSystem . ObjectDefinition . MetadataToken } )") ;
128130
129131 InsertCopyInstructions ( type , constructor , baseCopyFunc ) ;
130132
You can’t perform that action at this time.
0 commit comments