How to create RunAndSave Assembly using System.Reflection.Emit in .NET 6?
In the .NET 6 documentation for the AssemblyBuilder class in System.Reflection.Emit there is an example of how to build an assembly. The example can be made to compile and work in .NET 6 by changing AssemblyBuilder ab =…
How to get original data before decryption ?
I work on csharp I need to get data before decryption but i don't know how to do that data decrypted on file as below : ˆU*o" ى,be~ùث »وچٍاàےي¾أ(هشْé Pشم¢×l. ZS’ى² N· ¾«é¬Q غتُ ’ذi,اGNِء”©¢¼î¨C2‡ ùu35Yôy ¾إ ً¼@پ6¹qv¹آœإûج 4 Hu؟¼إ‘{]…J î‚üد*ڈ…
missing logic to the LINQ query which does not work
public IHttpActionResult InsuranceLimit(InsuranceLimitDTO IL) { var result = from b in db.InsuranceTransferAcc where b.UserId == IL.UserId select b.CreatedDate; } This above query (result ) is returning me empty. Not understanding what I am…
Is it ok to use HttpRequestMessage.properties in .net core 3.1?
Hi, I'm using HttpRequestMessage properties property in order to pass auth type in the request so that the message habdler will generate the correct authorization heade (basic, jwt, etc...) Is it good approach? Another thing I saw the Properties…
A general class to manage threads
Dear All, I am a beginner in C#. I want to create a class which can insert into any project for managing threads. However I don't know how to do it. Could anybody help me?
How do I set DBF column value to NULL (blank) when using VFPOLEDB and C#?
I have created a WPF application that is to maintain existing DBF files. These files are also used by another legacy application so I cannot migrate the data to SQL server or other more current DB. Some of the DBF tables have columns whose values are not…
LINQ Query for checking Time duration
I have a sql table which has column as below I want to have a LINQ query to check, when InsuranceID is passed as a input parameter, the logic needs to check for that particular InsuranceID if the CreationDate is >24 hrs return as True else return…
How to implement OPC UA Client and OPC UA Server software in C#?
Hi, How to implement OPC (Open Platform Communication Unified Architecture) UA Client and OPC UA Server software using C#.Net? Please help me on this.
activex control can't create object c# dll in windows 10/7
hi MS Team, i created a dll with vs2015 in c# in windows 7 32 bits and working fine up to now. i changed my pc where i created the dll to new laptop windows 10 64 bits . now iam trying to improve the last dll to resolve some errors but it work fine…
How to use merge sort to sort a int list?
I have a int list and want to get the result how to get it ? it is a sort and get the each line list in the sort algorithm. and another result
VS2019 debugger unable to watch a resource but the local variable obtains the value with no problem
In the project properties Build Events I use echo %date% %time% > "$(ProjectDir)\Resources\BuildDate.txt" To update the build date the file, "BuildDate.txt" was added in the project properties to the Resources collection as a…
How to get specific Rows count and value from an excel sheet tab 3
Hi, i have to get datas from 3rd colom of 3rd tab in an excel sheet.For all 3 tabs i have same number of rows.So when i tried to copy 3rd colom data always copying first colom data.I need to save only colom 3 value and heading save in to .txt file.How…
'Method is not implemented' error is displayed when clicked on 'Cancel' button.The throwing of WizardCancelledException doesn't work
protected override void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { BaseTestTools defaultTestTool = BaseTestTools.Default; …
c# help ..1)I want to collect items Emp_add ? 2)I want to delete an employee with his data?
int emp_id; string Emp_Name; int Emp_Salary;//cost salary in one hour double Emp_Department;//number hours work double Emp_add;//hours add double Emp_total; double Emp_tax;//clcluter tax in end month double Emp_inmonth;//salary after tax …
How to use string interpolation in foreach loop ?
Hi All, Please help me to format the string with 'string Interpolation'. Below is my foreach loop code with string + concatenation. I want to avoid + concatenation and use 'string Interpolation' int itemsCount = oUpdateVarList.Count(); …
ASP.NET_SessisonId change
I want to maintain different asp.net sessionid before and after login. please give solution for this . Thank you,
DataTables and DataRows - Convert Single Item Array into Object
Beginner question so hopefully easy. I am developing a Web API in C# to get products from a database. Behind it is a stored procedure that takes some parameters including a page number and returns two tables. One of them is up to 100 results along with…
SetupDiGetSelectedDriverA return an empty object
Hi! I'm using SetupDiGetSelectedDriverA to get the driver version but I get an empty driver object. var guid = Guid.Empty; var devInst = IntPtr.Zero; var driver = new SP_DRVINFO_DATA(); IntPtr hDevInfo =…
Word add-in
Plugin that summarizes a Word document in C#
Need to create sample worker service in .Net 6.0
Can anyone help me to create a sample worker service in .Net 6.0 ? If any sample is there please provide me