[Solved] Can i develop a .net project without visual studio ,if yes is .net framework is cost or freeware [duplicate]

Yes, you can develop without Visual Sturio. You could use csc or msbuild at the command line, you could use any of a range of alternative IDEs, or you could use Visual Studio Express, which is free. The .NET framework is freely available to Windows users. Alternatively if “free” and “free” isn’t good enough: Mono … Read more

[Solved] How I can convert this function to php?

This should do the trick: <?php function hash_data($data) { $data = mb_convert_encoding($data, ‘UTF-16LE’, ‘UTF-8’); $hash = hash(‘sha512’, $data, true); return base64_encode($hash); } $user=”admin”; $password = ‘secret’; $key = “7f9facc418f74439c5e9709832;0ab8a5:OCOdN5Wl,q8SLIQz8i|8agmu¬s13Q7ZXyno/yv.XSN1DsgKq9zi]XrE^gx8vPC^Av8=e/bF4pX1Oe hfqGb#JK~RONkS1wx5w=RE0$” . “DxZSu7evPfshBw7p5Gb&suEkw=RE0DxZSu7e´vPfshBw7p+5GbsuEkw=H1fTWFXfsXo}z0fOd{KTt[IdDG2y6E=”; $data = $user . $password . $key; // 6xecArT38JVtGKH2yQs/T6btOUF41vW5ptaPjgrd8hTaZZKnbJed5551LuYV7vR/Dr3Jb873JMvX0je+8XUpxw== echo hash_data($data); solved How I can convert this function to php?

[Solved] Removing some characters from string in c# [closed]

Here is one way: Create a System.Uri from the string Break it apart into .Segments Drop the last segment (the filename). (with .Take(length-1) or .SkipLast(1)) Concatenate the remaining segments back together with string.Join Drop the trailing / using .TrimEnd .NET Framework: var uri = new Uri(“Https://example.com/assets/css/bootstrap.css”); string result = string.Join(“”, uri.Segments.Take(uri.Segments.Length-1)).TrimEnd(“https://stackoverflow.com/”); .NET Standard: string result … Read more

[Solved] How to programmatically click a RANDOM button in WPF?

What I am doing here is getting all the child controls of the wrap panel assuming that you only have buttons on your wrap panel. I then generate random numbers between 0 and the total count of the children and then raising the event. (I am currently editing and formatting my answer) XAML: <WrapPanel Name=”wrapPanel”> … Read more

[Solved] Open Visual Studio 2008 Solution in Visual Studio 2013 without Upgrading

As several of the commenters have already helpfully pointed out, this is not possible. Round-tripping (i.e., opening and manipulating project files created by an older version of Visual Studio in a newer version of Visual Studio) was not supported until Visual Studio 11. The only way to open a Visual Studio 2008 project/solution in a … Read more

[Solved] Boxing and Performance [closed]

Boxing is considered slow because it implies the allocation of an object. In your case that object is short lived (will probably not survive Gen0), which makes it cheap. A recent microbenchmark I did put the cost of generating a short lived object at about ~15 CPU cycles. Cost might be a bit higher in … Read more

[Solved] How do I create child XElement based on values in C#?

Here is solution using Xml Linq.. Why is there two nested levels of navPoint? : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.Xml.Linq; namespace ConsoleApplication110 { class Program { const string INPUT_FILENAME = @”c:\temp\test.xml”; const string OUTPUT_FILENAME = @”c:\temp\test1.xml”; static void Main(string[] args) { XDocument doc = XDocument.Load(INPUT_FILENAME); XElement root = … Read more

[Solved] VB Net Class in C# [closed]

Need to make sure you’ve added the reference, as well as set the types you’re trying to access to public. Once this is done, you should make using references where appropriate, otherwise you’ll need to specify the entire namespace address each time you reference it. See Namespaces in Visual Basic and look over the code … Read more

[Solved] Downloading 1,000+ files fast?

Update It was just pointed out to me in a comment by Jimi, that DownloadFileAsync is an event driven call and not awaitable. Though, there is a WebClient.DownloadFileTaskAsync version, which would be the appropriate one to use in this example, it is an awaitable call and returns a Task Downloads the specified resource to a … Read more

[Solved] Changing the extension of multiple files to jpeg using C#

JPEG files are not text files. You need to Read and write bytes instead. ie: DirectoryInfo d = new DirectoryInfo(@”E:\New folder (2)”); FileInfo[] Files = d.GetFiles(); foreach (FileInfo file in Files) { string changed = Path.ChangeExtension(file.FullName, “jpg”); File.Copy(file.FullName, changed); } Of course file themselves should be JPEG for this to work. 4 solved Changing the … Read more

[Solved] Do while loop check for last iteration [closed]

Sure you could do this to count the iteration But put the ‘int iterationCheck=0’ variable declaration before the do/while scope. You could go for a ‘for’ loop too ( which would be better ) However it all depends on the condition of your loop. Because we can’t infer the ‘out’ condition of your loop so … Read more