93 I’ve got a VS2017 project that compiles to a DLL which is then called by an EXE written by someone else. Both projects target .Net Framework 4.6.2. I rewrote one of my DLL methods to return a tuple and also ...
Softans Latest Questions
2 I have class library project in .net standard 2.0.3 where I’m using System.Security.Cryptography.Xml to sign a xml document with a privateRSAkey. var sign = GetXmlSign(doc, rsa); private static XmlElement GetXmlSign(XmlDocument xml, AsymmetricAlgorithm key) { var signedXml = new SignedXml(xml) {SigningKey ...
In a Function App that we develop locally in Visual Studio, we have two environments to run against: Test and Development. Now, we have a local.settings.json and two respective environment-specific local.settings.<environment>.json which works totally fine – with one exception: The values used in the function trigger ...
I am trying to enforce all classes deriving from class EducationalUnit to implement a “Content” property. This property needs to be a key value pair where the key is an int and the value can be either another class implementing ...
Good evening! There is one interesting question: does using a constructor instead of calling a function in C++ is overhead? For example, the program uses one class with partial specialization of templates: class BindingApplierBase { public: ...
everyone. int x{}; if (x = 0) std::cout << "condition true"; else std::cout << "condition false"; I didnt understand why x=0 evaluates to boolean false and executing “condition false”. x=0 is an assignment,and x gets ...
I am struggling with the maxSubmatrixSum(matrix). I am new to Object Orientated and I thought I had a good understanding of it but clearly not. Why do I print 9 instead of 33? using System; namespace Test { ...
I have a datastructure meta_array which is instantiated with a variant as type T parameter. The requirement is that the std::variant specialization must contain the type meta_array_head_t as this is is used for tracking information. Can I somehow state this as a requirement using ...
I am trying to Deserialize string to class with this structure: // this is my json { "MethodName":"PRC_SET_COMMISSION_STATIC", "Input":"{"reqType":"U","sapId":17000100,"offerType":5,"commissionRate":4,"accountNo":null,"fromDate":"2022-05-29T00:00:00","toDate":"2029-05-29T00:00:00","userId":"13601360"}"} And this is my class which ...