redcap

Stories kicked by redcap

Sending email using a gmail account in C#(blog.nirandas.com)

submitted by redcapredcap(420) 2 years, 6 months ago

Sending emails using your gmail account is very simple in C#/VB.NET using .NET framework 2.0+. The below code snippet shows how. read more...

add a comment |category: |Views: 11

tags: another

Find matching items from a List - simple example of VB.NET 2008 lambda(blog.nirandas.com)

submitted by redcapredcap(420) 2 years, 6 months ago

Here is a very simple example showing how to find all matching items from a generic List(of T) using lambda functions in VB.NET. read more...

add a comment |category: |Views: 2

tags: another

Redirecting the console output to a stream(blog.nirandas.com)

submitted by redcapredcap(420) 2 years, 8 months ago

Shows how we can capture Console output and redirect it to a file. read more...

add a comment |category: |Views: 6

tags: another

Fastest way of copying bytes in C#(nirandas.com)

submitted by redcapredcap(420) 2 years, 9 months ago

If you ever have come across having to copy a block of bytes from an array to another location, the fastest method I found in .NET framework is using the System.Buffer.BlockCopy() read more...

add a comment |category: |Views: 17

tags: another

Expand short URLs of tinyurl, bit.ly, tr.im etc(nirandas.com)

submitted by redcapredcap(420) 2 years, 10 months ago

Popularity of services like twitter and other social networking sites have resulted in an exponential growth in the number of URL shortening services. bit.ly, tr.im are just few of the example. In this post I'll show how we can programmatically discover the hidden URL behind the shortened one. read more...

add a comment |category: |Views: 53

tags: another

Creating global hotkeys using managed Win API(nirandas.com)

submitted by redcapredcap(420) 2 years, 10 months ago

.NET framework does not by default provide classes/methods for creating global hotkeys in our .NET applications. A hotkey can be defined as a particular key combination pressing of which triggers a event in our application even if user is not actively working on our app. For achieving this, we’ll have to call into win32 api functions. Though .NET framework makes this work relatively easy, still calling into managed dlls and wrapping them in .NET classes read more...

add a comment |category: |Views: 122

tags: another

Quick FTP file upload in .NET(nirandas.com)

submitted by redcapredcap(420) 2 years, 10 months ago

Uploading files using FTP is quick and easy in .NET framework. Below is a simplest possible method to upload a local file to a FTP server. Example is in read more...

add a comment |category: |Views: 138

tags: another

If blocks and readable code(nirandas.com)

submitted by redcapredcap(420) 2 years, 11 months ago

Writing readable code is as important as writing high performance working code. One of the things which can easily affect the readability of the code we write is improper structuring of if/else blocks. read more...

add a comment |category: |Views: 13

tags: another

Using Email instead of Username for logging in(nirandas.com)

submitted by redcapredcap(420) 3 years ago

The Login control does not by default allow to set whether to use username and password as the log in or email and password should be used. In this post I'll show how we can easily change this behavior and allow our members to use their email address while logging in. read more...

add a comment |category: |Views: 29

tags: another

Entity Framework vs NHibernate(mattias-jakobsson.net)

submitted by JakobssonJakobsson(485) 3 years ago

I have worked with both Entity Framework (at work) and NHibernate (at private projects) for a while now, and I tought I would write a post about the differance between the two. They are both (kind of) Object Relational Mappers (ORM´s) and they were developed to solve the same problem, that is data access in a .NET application. Entity Framework is a product from Microsoft while NHibernate is a Open Source project. read more...

add a comment |category: |Views: 120

tags: another

The ‘Always Valid Entity’ is not a fallacy(andyhitchman.wordpress.com)

submitted by AndyHitchmanAndyHitchman(25) 3 years ago

Following Jeffrey Palermo's post on the fallacy of the always-valid entity, this article being to look at how an 'always-valid' entity may be implemented. read more...

add a comment |category: |Views: 28

tags: another

Where can I set target platform to .net 2.0 in vs2008(nirandas.com)

submitted by redcapredcap(420) 3 years ago

VS2008 allows to target multiple .NET versions (V3.5, V3.0 and V2.0). But where exactly to set it? The thing is that this setting is found at different read more...

add a comment |category: |Views: 14

tags: another

ASP.NET MVC 1.0 Release Candidate Now Available(weblogs.asp.net)

submitted by sharplifesharplife(4570) 3 years, 3 months ago

Finally Scott Guthrie announced ASP.NET MVC 1.0 RC. Check it out. read more...

2 comments |category: |Views: 239

tags: another

Replacing the default view engine in MVC w/ Spark(dimecasts.net)

submitted by LordLord(3737) 3 years, 4 months ago

DimeCast - Replacing the default view engine in MVC w/ Spark read more...

add a comment |category: |Views: 216

tags: another

Beginning Reflection.Emit, a basic example(nirandas.com)

submitted by redcapredcap(420) 3 years, 4 months ago

The System.Reflection.Emit namespace provides us the tools required to generate .NET code on the fly. Especially the DynamicMethod class makes the job of creating small code snippet easier. In this post I’ll show a simple example of dynamically creating a method which takes a string as its argument and returns a string “hi “prepended to it. First, we will create the DynamicMethod object specifying the argument list and the return type of the dynamic method. Next read more...

add a comment |category: |Views: 49

tags: another

Determining if a Type implements an interface(nirandas.com)

submitted by redcapredcap(420) 3 years, 4 months ago

If we have an object of a type, we can easily check if that object implements a particular type by using is operator. However, we cannot use is operator if all we got is a type and we want to find whether that type implements a particular interface. read more...

add a comment |category: |Views: 23

tags: another