コード例 #1
0
ファイル: DDIHelper.cs プロジェクト: YHZX2013/exchange_diff
        internal static bool IsSkippingStrongTypeConversion(object obj)
        {
            if (obj == null)
            {
                return(true);
            }
            Type type = obj.GetType();

            return(type.IsPrimitive || obj is string || type.IsDataContract() || !type.Namespace.StartsWith("Microsoft.Exchange") || (DDIHelper.HasSerializableAttribute(type) && type.Namespace.StartsWith("Microsoft.Exchange.Management.ControlPanel")));
        }