pack it into a named mehtod and we would have no discussion about a method
like falseIfBothValuesAreFalse


On Mon, Mar 25, 2013 at 1:08 PM, François Thillen
<notifications@github.com>wrote:

> In bridge/Implementation/ExtendMethods.cs:
>
> > +        public static T ConvertOSBType<T>(this Object obj)
> > +        {
> > +            String tmp = marshaller.MarshallObject(obj);
> > +            return marshaller.UnmarshallObject<T>(tmp);
> > +        }
> > +        /// <summary>
> > +        /// Checks if to type have the same type
> > +        /// </summary>
> > +        /// <param name="key"></param>
> > +        /// <param name="keyType"></param>
> > +        /// <returns></returns>
> > +        private static bool IsValueNotInCorrectType(Object key, Type keyType)
> > +        {
> > +            Boolean a1 = keyType.Name.Equals(key.
> GetType().Name);
> > +            Boolean a2 = keyType.IsInstanceOfType(key.GetType().DeclaringType);
> > +            return !(a1 || a2);
>
> I think that is a personal thing. I read it 100 times faster with, !(a1 ||
> a2).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openengsb/loom-csharp/pull/48/files#r3510408>
> .
>