This blog is primarily a compilation of frequently faced issues by developers with solutions which I have implemented to solve them
Thursday, January 28, 2016
Deploying .Net Application with ease
Labels:
.Net Deployment
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Format XAML code using XAML Magic
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Monday, January 18, 2016
How to take an asp.net mvc website down for maintenance
Labels:
ASP.NEt MVC
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Friday, November 6, 2015
Generate a comma separated string from an IEnumerable object
string.join(",", Contacts.Select(x=>x.Name); //Name is a property of an object(Contact) in the list of Contacts
Labels:
C#,
comma separated string
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Wednesday, November 4, 2015
Simple yet effective way to find if IEnumerable has elements or not
bool IsEmpty(IEnumerable en)
{
foreach(var c in en) { return false; }
return true;
}
Labels:
C#,
IEnumerable
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Monday, October 19, 2015
C# code to get numbers after decimal point
int decimalPoints=BitConverter.GetBytes(Decimal.GetBits(value)[3])[2];
Labels:
C#,
Decimal Precision
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Saturday, October 10, 2015
How do you force authors or template stylists to force add a control
How do you force
authors or template stylists to force add a control
Solution- Provides
template authors the information that these parts are required for styling this
control -more like a contract
[TemplatePart [Name=TextBlockPart, Type =typeof(TextBlock))) public class MyControl : Control
{
private const string TextBlockPart as PART_TextBlock;
TextBlock textblock;
protected TextBlock Textßlock
get { return textblock;}
set
{
if (textßlock is null)
(
textblock.Textlnput-= new TextCompositionEventHendler(textblockTextlnput)
J
Labels:
Custom Control,
Template Part,
WPF
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Subscribe to:
Posts (Atom)