private void InitBlock() { // REMOVE: in 3.0 #pragma warning disable 618 supportedMethods = GetSupportedMethods(this.GetType()); #pragma warning restore 618 }
private static MethodSupport GetSupportedMethods(System.Type clazz) { MethodSupport supportedMethods; lock (knownMethodSupport) { supportedMethods = knownMethodSupport[clazz]; if (supportedMethods == null) { knownMethodSupport.Add(clazz, supportedMethods = new MethodSupport(clazz)); } } return(supportedMethods); }
private static MethodSupport GetSupportedMethods(System.Type clazz) { MethodSupport supportedMethods; lock (knownMethodSupport) { supportedMethods = (MethodSupport) knownMethodSupport[clazz]; if (supportedMethods == null) { knownMethodSupport.Add(clazz, supportedMethods = new MethodSupport(clazz)); } } return supportedMethods; }
private void InitBlock() { supportedMethods = GetSupportedMethods(this.GetType()); }
private void InitBlock() { // REMOVE: in 3.0 #pragma warning disable 618 supportedMethods = GetSupportedMethods(this.GetType()); #pragma warning restore 618 }