Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help with straight line depreciation coding Pin
OriginalGriff21-Jun-21 9:58
mveOriginalGriff21-Jun-21 9:58 
GeneralRe: Need help with straight line depreciation coding Pin
Member 1524886721-Jun-21 10:54
Member 1524886721-Jun-21 10:54 
GeneralRe: Need help with straight line depreciation coding Pin
Mycroft Holmes21-Jun-21 13:53
professionalMycroft Holmes21-Jun-21 13:53 
AnswerRe: Need help with straight line depreciation coding Pin
Gerry Schmitz22-Jun-21 6:27
mveGerry Schmitz22-Jun-21 6:27 
Questionc# language feature surprise using Linq ThenBy (observation) Pin
BillWoodruff20-Jun-21 23:40
professionalBillWoodruff20-Jun-21 23:40 
AnswerRe: c# language feature surprise using Linq ThenBy (observation) Pin
Richard Deeming21-Jun-21 1:29
mveRichard Deeming21-Jun-21 1:29 
GeneralRe: c# language feature surprise using Linq ThenBy (observation) Pin
BillWoodruff21-Jun-21 2:38
professionalBillWoodruff21-Jun-21 2:38 
Questioncan any one please explain how to connect to stratum 1 or 2 mining pool? Pin
Member 1336047319-Jun-21 7:11
Member 1336047319-Jun-21 7:11 
AnswerRe: can any one please explain how to connect to stratum 1 or 2 mining pool? Pin
OriginalGriff19-Jun-21 9:12
mveOriginalGriff19-Jun-21 9:12 
AnswerRe: can any one please explain how to connect to stratum 1 or 2 mining pool? Pin
BillWoodruff20-Jun-21 23:29
professionalBillWoodruff20-Jun-21 23:29 
QuestionPrinte page limit Pin
Member 1419221619-Jun-21 5:46
Member 1419221619-Jun-21 5:46 
QuestionDelegates, generic collection Pin
Samkelo3418-Jun-21 11:41
Samkelo3418-Jun-21 11:41 
AnswerRe: Delegates, generic collection Pin
OriginalGriff18-Jun-21 11:42
mveOriginalGriff18-Jun-21 11:42 
AnswerRe: Delegates, generic collection Pin
Mycroft Holmes18-Jun-21 12:39
professionalMycroft Holmes18-Jun-21 12:39 
JokeRe: Delegates, generic collection Pin
Peter_in_278018-Jun-21 15:03
professionalPeter_in_278018-Jun-21 15:03 
AnswerRe: Delegates, generic collection Pin
Richard MacCutchan18-Jun-21 22:20
mveRichard MacCutchan18-Jun-21 22:20 
Questionhow to remove node from string formatted xml using c# Pin
michael nabil18-Jun-21 11:07
michael nabil18-Jun-21 11:07 
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard MacCutchan18-Jun-21 22:15
mveRichard MacCutchan18-Jun-21 22:15 
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard Deeming20-Jun-21 23:22
mveRichard Deeming20-Jun-21 23:22 
GeneralRe: how to remove node from string formatted xml using c# Pin
michael nabil21-Jun-21 10:31
michael nabil21-Jun-21 10:31 
QuestionShared memory Pin
manoharbalu18-Jun-21 2:26
manoharbalu18-Jun-21 2:26 
AnswerRe: Shared memory Pin
Richard Andrew x6419-Jun-21 14:39
professionalRichard Andrew x6419-Jun-21 14:39 
GeneralRe: Shared memory Pin
manoharbalu21-Jun-21 1:15
manoharbalu21-Jun-21 1:15 
AnswerRe: Shared memory Pin
Richard Deeming20-Jun-21 23:18
mveRichard Deeming20-Jun-21 23:18 
QuestionRegarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Member 1522917418-Jun-21 1:11
Member 1522917418-Jun-21 1:11 
Hi,

I have created one C# dll of .Net Framework 4.7.2. In this DLL, I want to deserialize the JSON file and when I have added the code for deserialization ,I got compilation error to install the NuGet package
After installing System.Text.Json NuGet package of latest version(5.0.2), dll builds successfully.
When I connect this Dll with the C++ application and calls the deserialization method of the DLL, at that time I got one run time exception stating that:
“Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.”

Solutions I Tried:

1) I tried to change in the app.config file with the value of the version which is specified in the error.
After changing in app. Config file , I got different run time exception:
“System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'”

I tried changing the version of System. Buffers also in config file, but still getting the same error.

2) I tried to install the System.Text.Json of version 4.7.2
In this version also I am getting the same System. Buffers error.


Note: If we use the .Net 5.0.0(Core version) then System.Text.Json already present in it as default but with this version we are not able the generate the .tlb file as Regasm.exe gives error while registering the dll and in .Net 5.0.0 Register for COM interop is also disabled.

Thank you in advance.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.