Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to get connection string from xml file in c#

var x = XElement.Parse(@"<?xml version=""1.0"" standalone=""yes""?><connectionString><conn>adsf</conn></connectionString>");
// or var x = XElement.Load(@"c:	empmy.xml");
var s = x.Element("conn").Value;
Comment

PREVIOUS NEXT
Code Example
Csharp :: android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1145) 
Csharp :: get first and last item list c# 
Csharp :: remove tag anchor and inside tag from html raw text c# 
Csharp :: what is string args in c# 
Csharp :: C# verify "no other" call xunit 
Csharp :: C# today, yesterday, last week, last month 
Csharp :: Acrylic UWP Title bar C# 
Csharp :: convert array to datatable c# 
Csharp :: c# distinct dictionary 
Csharp :: c# string split by length 
Csharp :: unity transform.translate 
Csharp :: unity how to check object position 
Csharp :: c# blazor in .net framework 
Csharp :: Create an array with random values c# 
Csharp :: unity on key press 
Csharp :: c# async in wpf 
Csharp :: c# arraylist to listview 
Csharp :: inverse kinematics not working unity 
Csharp :: xamarin 12 hrs time format tt 
Csharp :: c# boundingbox text 
Html :: import js in html 
Html :: add mailto in html 
Html :: tag for tel 
Html :: disable-html-form-input-autocomplete-autofill 
Html :: _blank in html 
Html :: add favicon html 
Html :: html hide a div by default 
Html :: input datetime 
Html :: favicon not showing up 
Html :: iframe pdf html5 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =