This peice of code will show you some memory management in classes. When we give application to client, we don't know how will he use that whether he will call dispose or not? It may be missing at client side so our application should be smart enough to free used resources, here is code which will give… Continue reading [C# Tutorial] – Using Dispose method
Một trong những thao tác mà chúng ta thường hay thực hiện trong các ứng dụng đó là di chuyển từ trang này sang trang khác. Trong Windows Phone 8 thì việc điều hướng trang (Page Navigation) được thực hiện bởi một dịch vụ riêng biệt. Trong bài viết này, tôi sẽ giới thiệu về… Continue reading Windows Phone 8 – Cách triển khai việc điều hướng trang
I found that we can access to items within a pointer vector by two ways bellow: The first way is using at function, and the other one is using indexer The output result is: 123 456 Happy Coding!!
Here I list the new features of Entity Framework 5.0 RC: New Data Type Support with Entity classes Entity Framework 5.0 RC supports many new data types with entity classes: Enum Spatial Data Type (Geography and Geometry) you can expose in model using DbGeography and DbGeometry types. Spatial data is supported in Model, Database… Continue reading New Feature of Entity Framework 5.0 RC
The Entity Framework team at Microsoft has been extremely busy this past year to get a new version of the Entity Framework out the door. The first release (which shipped last summer with .NET 3.5 SP1) generated a fair amount of criticism, especially because it lacked many features present in LINQ to SQL, such as POCO… Continue reading Top Ten New Features in Entity Framework 4.0
I did a benchmark to compare performance between insert and push_back functions of vector on 100.000 int elements in C++ The result is: push_back: 240ms insert: 10ms Here is my code: So, if you want to perform copy items between vectors, you should use insert instead of push_back.
Let's consider two follow scenarios: Happy learning!!