摘要:
What it is saying is, it found the DLL, but it couldn't find a type named "namespace.User" from within that DLL. It was expecting to find that type in that particular assembly, but did not. 阅读全文
摘要:
To debug xaml exception:Visual Studio -> Debug -> Exception -> Common Language Runtime Exceptions // Standard XAML initialization try { InitializeComponent(); } catch (Exception e) { Debug.WriteLine(e.ToString()); ... 阅读全文
摘要:
public delegate TResult Func( T arg)http://msdn.microsoft.com/en-us/library/bb549151.aspx 阅读全文
摘要:
http://msdn.microsoft.com/en-us/data/gg577611.aspx 阅读全文
摘要:
A lot of the below depends on the types of data, how often it is changing, and how often it is likely to conflict.If:The data modified offline is likely to be separate from data that is downloaded / refreshed, orA data synchronisation pattern is in play for other mobile clients (iOS, Android etc)The 阅读全文
摘要:
Inversion of Control- Dependency Injection- Dependency Lookuploose coupling/maintainability/late bindingabstract factoryunit testcontainer非 DI 的版本底下這段程式碼是 Console 應用程式的進入點:classProgram{staticvoidMain(string[]args){HeavyDutyaTask=newHeavyDuty();aTask.Run();}}Main 函式會先建立類別 HeavyDuty 的執行個體,然後呼叫該物件的 Run 阅读全文
摘要:
Periodic TaskPeriodic agentsrun for a small amount of time on a regular recurring interval. Typical scenarios for this type of task include uploading the device’s location and performing small amounts of data synchronization.ResourceIntensive TaskResource-intensive agentsrun for a relatively long pe 阅读全文
摘要:
Polling. The Controllerperiodically asks theServicefor the latest data. IMHO, this option sucks, but it's certainly possible.Callbacks. TheControllerregisters a callback object ("observer") with theService. TheServiceinvokes a method on the callback when the data changes, which in turn 阅读全文
摘要:
NULL. The value is a NULL value.INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.REAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.TEXT. The value is a text string, stored using the database en 阅读全文
摘要:
Check dictionary value if it's emptydictionary.ElementAt(i).Value == DBNull.ValueCheck string valueif (String.IsNullOrWhiteSpace(mystring))equals to..if (mystring == null || mystring == String.Empty || mystring.Trim().Length == 0) earlier versionif (String.IsNullOrEmpty(mystring) || mystring.Tri 阅读全文