This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var products=unitOfWork | |
.Session | |
.CreateCriteria<Product>() | |
.SetTimeout(120) | |
.List<Product>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var products=unitOfWork | |
.Session | |
.QueryOver<Product>() | |
.UnderlyingCriteria.SetTimeout(120) | |
.List<Product>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Serializable] | |
public class Product | |
{ | |
[NonSerialized] //NonSerialized works on field values | |
private int _id; | |
public int Id | |
{ | |
get{return _id;} | |
set{_id=value;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Product | |
{ | |
[XmlIgnore] | |
public int Id{get;set;} | |
[XmlIgnore] | |
public string Name{get;set;} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<cat:CATEGORIES xmlns:cat="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/categories"> | |
<CATEGORY refname="Microsoft.BugCategory" name="Bug Category"> | |
<DEFAULTWORKITEMTYPE name="Bug" /> | |
</CATEGORY> | |
<CATEGORY refname="Microsoft.RequirementCategory" name="Requirement Category"> | |
<DEFAULTWORKITEMTYPE name="User Story" /> | |
</CATEGORY> | |
<CATEGORY refname="Microsoft.SharedStepCategory" name="Shared Step Category"> | |
<DEFAULTWORKITEMTYPE name="Shared Steps" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var message = @"c:\message.xml"; | |
var xslTransformation = @"c:\messagetransformation.xsl"; | |
var xslDocument = new XslCompiledTransform(); | |
xslDocument.Load(xslTransformation); | |
var stringWriter = new StringWriter(); | |
var xmlWriter = new XmlTextWriter(stringWriter); | |
xslDocument.Transform(message, xmlWriter); | |
//Load the transformed output in a WPF WebBrowser control | |
webBrowser.NavigateToString(stringWriter.ToString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var folder = Package.Current.InstalledLocation; | |
var stream= folder.OpenStreamForReadAsync("Filename.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.webServer> | |
<urlCompression doDynamicCompression="true" /> | |
<httpCompression> | |
<dynamicTypes> | |
<add mimeType="application/json" enabled="true" /> | |
<add mimeType="application/json; charset=utf-8" enabled="true" /> | |
</dynamicTypes> | |
</httpCompression> | |
</system.webServer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class String | |
{ | |
// aapt resource value: 0x7f070001 | |
public const int ApplicationName = 2131165185; | |
// aapt resource value: 0x7f07000f | |
public const int DataLoadingError = 2131165199; | |
// aapt resource value: 0x7f07000e | |
public const int ImageLoadingError = 2131165198; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string applicationName = Resources.GetString(Resource.String.ApplicationName); |