McMahone
McMahone
CC#
Created by McMahone on 5/10/2024 in #help
base64 encoding csv string
Hi, currently working with encoding a csv string file to base64, but Convert.Tobase64String gives different result than the base64 extension I use on Vscode. The method adds extra characters and two "=" at the end for padding. The extension from the Vscode is the correct one for my application, which only adds single "=" at the end without adding three extea characters (Both in UTF-8 format) Am I doing something wrong or is it possible to encode in different ways?
19 replies
CC#
Created by McMahone on 10/2/2023 in #help
❔ Sending a message to ServiceBus topic from ASP.NET Web API controller
Hello, I want to send a simple message to ServiceBus topic from a ASP.NET Web API. I created a very simple customer controller which includes (name, last name, email and phone) and made HttpGet request, which I tested with Postman. I have already created a servicebus namespace, topic name and subscription on Azure. My next task is to use azure function app to take the message from the topic subscription and stored into a blob storage. Thanks in advance!
12 replies
CC#
Created by McMahone on 8/10/2023 in #help
❔ initiating Constructor
Why cant I sometimes initiate data members in a constructor like this: Public Car (int wheels, string color) { Wheels = wheels Color = color } And only use this.color = color this.wheels = wheels What is the difference? Why do we have use this at all?
42 replies
CC#
Created by McMahone on 7/18/2023 in #help
❔ Recursive Multiplier
81 replies