Skip to content

Instantly share code, notes, and snippets.

@Aravin
Aravin / ProtectedInternalAccessModifiedInCSharp.cs
Created April 12, 2018 18:44
Protected Internal Access Modified in C#
// Code from Project 1
namespace FirstAssembly
{
public class FirstClass
{
protected internal static void FirstMethod()
{
Console.WriteLine("Private protected method called...");
}
}
@Aravin
Aravin / xmlParser.ts
Last active May 22, 2024 06:22
Converting JSON toXML& XML to JSON in Node.js using xml2js package in TypeScript
import { parseString, Builder } from "xml2js";
// Convert string/XML to JSON
function toJson(xml: string) {
parseString(xml, { explicitArray: false }, function(error, result) {
console.log(result);
});
}
@Aravin
Aravin / CSharp-HelloWorld.cs
Last active January 5, 2019 19:16
C# - Hello World Program
using System;
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello, World!");
}
}
@Aravin
Aravin / Js_Binary_to_hex.md
Last active August 31, 2020 13:54
Javascript Code to Convert Larger Binary Digit to Hex Code

To convert large binary to hex use this code

const binaryData:=
{
    '0000': '0',
    '0001': '1',
    '0010': '2',
 '0011': '3',