Welcome To Snipplr
Everyone's Recent C# Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
By default, enum values cannot have spaces in them (i.e. "Created Date" can only be "CreatedDate"). With this method, we can change that!
0
2543
posted 14 years ago by dotNetkow
Modifies the file name in case an existing filename is in the specified path.
(Ex: myfile.dat
myfile(1).dat
myfile(2).dat
myfile(3).dat)
0
1299
posted 14 years ago by Sazabi02
This is an extension method for splitting strings with a regular expression.
0
793
posted 14 years ago by gyurisc
Uses LDAP to find EMail address by using the sAMAccountName.
Add System.DirectoryServices to references.
0
1099
posted 14 years ago by poxet
Uses LDAP to find sAMAccountName by using the Email address.
Add System.DirectoryServices to references.
0
1379
posted 14 years ago by poxet
Enables to create a generic list with anonymous types. Very useful for me :).
1
740
posted 14 years ago by wallybh
You should include these Cookie helpers in your base page class. Enjoy!
1
1009
posted 14 years ago by mecha
Uses a nested query to prject values from an entity collection.
1
917
posted 14 years ago by housecor
Why? So that your class can be used with collection classes.
// basic class
Every object has a GetHashCode() and Equals() method by default which it inherits from Object. Unfortunately these methods are useless as they stand because they say no...
1
770
posted 14 years ago by mark4asp
Notes:\r\n\r\n(1) your namespace\'s using section should include the following:\r\nusing System.Net.Mail;\r\n\r\n(2) my example code places the email-sending code in a Button\'s Click() event-handler
3
1063
posted 14 years ago by kyrathaba
This method can execute XML-RPC call and return response. Can be useful for working with XML-RPC API's like Snipplr.com XML-RPC API and other
4
1584
posted 14 years ago by dzr_gregory
Database connection class to be easily incorporated into any db based softwares, using SQLite 3
2
1519
posted 14 years ago by amitkenny