Posts

Solution of This Error : Error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

Add This section to your Test Project csproj <Target Name="CopyDepsFiles" AfterTargets="Build" Condition="'$(TargetFramework)'!=''">     <ItemGroup>       <DepsFilePaths Include="$([System.IO.Path]::ChangeExtension('%(_ResolvedProjectReferencePaths.FullPath)', '.deps.json'))" />     </ItemGroup>        <Copy SourceFiles="%(DepsFilePaths.FullPath)" DestinationFolder="$(OutputPath)" Condition="Exists('%(DepsFilePaths.FullPath)')" />   </Target>

Check Palindrome Number from a string

 static void Main(string[] args)         {                         Console.WriteLine(" Enter string");             string s = Console.ReadLine();             Console.WriteLine(PalindromNo(s));             Console.ReadLine();         }  public static string PalindromNo(string str)         {             string strOut = string.Empty;             string revs = string.Empty;             if (!string.IsNullOrEmpty(str))             {                 for (int i = str.Length-1; i >= 0; i--)                 {             ...

Make a uppercase string character to lowercase and vice-versa

Its a program to change a uppercase letter to lowercase and  the lower case letter to uppercase. The input is a string.         static void Main(string[] args)         {            Console.WriteLine(CheckNo("abcdEF"));            Console.ReadLine();         }  public static string CheckNo(string s)         {             StringBuilder sb = new StringBuilder();             Char ch ;             char[] arr1;             char[] c = s.ToCharArray();             for (int i = 0; i < c.Length; i++)             {                 if (Char.IsUpper(c[i]))                 ...

Insert Comma Separated String to Database table in My SQL

 If the database table contains this id than it update the data if not contain it insert a new record which are not in table  I am writing this for my requirement ,you can also change the input parameter as per your requirement. DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `USP_Update_ServiceTask`(             in  in_Action           varchar(10),         in  PKService_Task_ID   int,         in  in_serviceid        int,         in  in_TaskIds          varchar(8000),         in  in_Updatedby        varchar(50),         out  message ...

Split Comma Separated String in My SQL

DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `String_Split`(  vString VARCHAR(8000),   vSeparator VARCHAR(5) ) BEGIN DECLARE vDone tinyint(1) DEFAULT 1; DECLARE vIndex INT DEFAULT 1; DECLARE vSubString VARCHAR(15); DROP TABLE IF EXISTS tmpIDList; CREATE TEMPORARY TABLE tmpIDList (ID INT); WHILE vDone > 0 DO   SET vSubString = SUBSTRING(vString, vIndex,                     IF(LOCATE(vSeparator, vString, vIndex) > 0,                       LOCATE(vSeparator, vString, vIndex) - vIndex,                       LENGTH(vString)                     )...

How to creat slideshow in javascript

Slidesh Step 1: Open your webpage and paste the following code anywhere between <body> and </body>: <!----------------------------------------------> <!-- START OF CODE FOR THE SLIDESHOW --> <!----------------------------------------------> <!-- CONFIGURATION OF TEXT-STYLE STARTS HERE --> <style> .textstyle {                 /* style attributes for the comments */                 font-family:Arial;                 font-size:8pt;                 color:#aaaaaa;                 background-color:#FFFFFF;   ...
Ajaya