This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static void SQLServerEscapeObject(object obj) | |
| { | |
| foreach (System.Reflection.PropertyInfo property in obj.GetType().GetProperties()) | |
| { | |
| try | |
| { | |
| if (property.PropertyType.FullName == "System.String" && property.GetValue(obj, null) != null) | |
| { | |
| property.SetValue(obj, property.GetValue(obj, null).ToString().Replace("'", "''"), null); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Author: Matt Bungard / bungard at g-mail d com | |
| # | |
| #Pull bits from various sources, if you've been exluded let me know and I'll cite accordingly | |
| #http://stackoverflow.com/questions/26737239/powershell-add-a-new-document-to-exisitng-word-file-with-page-number-of-2 | |
| ## -- Settings -- | |
| #$fileNamePattern = "ID #:\s+(\d+)" | |
| $fileNamePattern = "Student ID #:\s+# (\d+)" | |
| $pageLength = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| namespace Comparer | |
| { | |
| public class SemiNumericComparer : IComparer<string> | |
| { | |
| public int Compare(string s1, string s2) |
OlderNewer