10월, 2014의 게시물 표시
Reactive Extension 설치 신기하다...

getMatchedCSSRules and IE

extract all IHTMLStyleSheetRules of document. filter those by interesting style value. test whether a element is able to be applied to rule by msMatchesSelector method, which is invoked with arguments;selectorText of rule and the element. CSSUtilities  seems not to support IE10+.

Reflection with IDispatch-based COM objects

Reflection with IDispatch-based COM objects #region Using Directives using System; using System.Reflection; using System.Runtime.InteropServices; using System.Security.Permissions; #endregion namespace COM_Test { /// <summary> /// Provides helper methods for working with COM IDispatch objects that have a registered type library. /// </summary> public static class DispatchUtility { #region Private Constants private const int S_OK = 0; //From WinError.h private const int LOCALE_SYSTEM_DEFAULT = 2 << 10; //From WinNT.h == 2048 == 0x800 #endregion #region Public Methods /// <summary> /// Gets whether the specified object implements IDispatch. /// </summary> /// <param name="obj">An object to check.</param> /// <returns>True if the object implements IDispatch.  False otherwise.</returns> public static bool ImplementsIDispatch(object obj) { bool result = obj is ID...

Best C# Practices.

http://www.codeproject.com/Articles/593751/Code-Review-Checklist-and-Guidelines-for-Csharp-De