Browse by Tags
All Tags »
C# (
RSS)
Sorry, but there are no more tags available to filter with.
We have to include functionality into an application of ours which will show thumbnail previews for certain HTML files. This functionality is used for choosing a template in a content management product of ours. In order to get the preview, there are some shell programming involved. Luckily, I didn't have to work on the shell coding myself, because I found a link that contains code for an object that does all this for you - in C#. To access the code, follow this link . Easy peasy. Share this post...
I was really surprised about how easy this is. The last time I played with the System.Drawing namespace was when I dynamically created images when I first started playing around with ASP.Net. I'm currently including functionality into a product that allows it to display images on the server as thumbnails, and these thumbnails needs to be dynamically generated. The following snippet shows how to dynamically generate a thumbnail and display it. public bool ThumbnailCallBack() { return false ; } private...
Interesting link/download: http://csopf.sourceforge.net/ Extract: The C# Object Persistent Framework (csopf) is a project which has a goal of making rapid development of business software. I'm not a big fan of tools like these, I'm not even too excited about Visio EA's code generation . But this looks quite interesting - not that I'd use it. It even supports CRUD operations generation. What really caught my eye though, was that it will automatically create NUnit tests for all the generated classes...
I started writing a post on the subject, but it turned into an article. The article can be viewed at: http://dotnet.org.za/hendrik/articles/1061.aspx Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
I often use lazy instantiation in order to keep my memory utilization at an acceptable rate. This is useful especially in scenarios where a hierarchy of objects exists - meaning composite relationships exists between classes. To illustrate what I mean, I have devised a little scenario. We want to write is a system that represents a library - to such an extent that even the paragraphs of text in the books will be represented by objects. So we will have a few classes: Library Book Page Paragraph The...
I wrote a tutorial on the subject which was published on SaDeveloper . It can be viewed at http://www.sadeveloper.net/viewarticle.aspx?articleID=155 . We were writing a ton of regular expressions, which was becoming a bit difficult to understand and support, so this really helped us out to manipulate markup. Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!