RcBuilder@walla.com
call centre: 054-5614020

Translations class example

Posted by: RcBuilder  /   Category: Controls / Converters / Dictionary / Enum / SOURCE CODE   /   No Comments
06
Nov
2014

Translations class example namespace Translations { public class Months { private Entities.Cultures.eCountryCode DefaultCountry = Entities.Cultures.eCountryCode.EN; private Dictionary<Entities.Cultures.eCountryCode, Dictionary<string, string>> _Data = new Dictionary<Entities.Cultures.eCountryCode, Dictionary<string, string>> { { #region CN: Entities.Cultures.eCountryCode.CN, new Dictionary<string, string> { { "01", "一月" }, { "02", "二月" }, { "03", "三月" }, { "04", "四月" }, { "05", "五月" }, { "06", "六月" }, { "07", "七月" }, { "08", "八月" }, { "09", "九月" }, { "10", "十月" }, { "11", "十一月".

Read more

implicit C#

Posted by: RcBuilder  /   Category: Converters / Extensions / implicit / SOURCE CODE   /   No Comments
29
May
2014

implicit C# structure: public static implicit operator Class3(Class1 c); // implicit Convert Class1 to Class3 public static implicit operator Class3(string s); // implicit Convert string to Class3 public static implicit operator string(Class3 c); // implicit class3 to string ... ... example: public class ClassA { public string FName { private set; get; } public string LName { private set; get; } public byte Age { private set;.

Read more

implicit cast to return a single instance object

Posted by: RcBuilder  /   Category: Converters / Extensions / implicit / Reference Types / SOURCE CODE   /   No Comments
29
May
2014

using implicit cast to return a single instance object /* the abillity to return a single instance for multiple objects using implicit cast we defined 2 classes (class1 and class2) and we define 2 services (service1 and service2) each service DoWork method should return a different object type (service1 return class1 and service2 return class2) demand: we want to share it.

Read more

DECIMAL TO BINARY

Posted by: RcBuilder  /   Category: Bits / Converters / SOURCE CODE / Value Types   /   No Comments
21
May
2014

DECIMAL to BINARY number = 316 divide the decimal number by 2 till you reach 0 each division action set 0 or 1 alongside 0 for no remainder and 1 if the calculation has a remaider example: 316 // 316/2=158 no remainder- bit 0 158 // 158/2=79 no remainder- bit 0 79 // 79/2=39.5 remainder- bit 1 39 // 39/2=19.5 remainder- bit 1 19 //.

Read more

Converter – Report Item 2 Csv Row

Posted by: RcBuilder  /   Category: Converters / Linq / List / SOURCE CODE   /   No Comments
04
May
2014

public class ReportItem { public Guid AccountId { set; get; } public string Email { set; get; } public string AccountStatus { set; get; } public string MainTP { set; get; } public string FirstName { set; get; } public string LastName { set; get; } public string OptIn { set; get; } public DateTime LastUpdate { set; get; } } public class Converters { public static.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים