public static LogicalTypeInfo CreateTypeInfo (Type t, string filePath)
{
#if NET_3_5
if (t.GetCustomAttributes (typeof (ServiceContractAttribute), false).Length > 0)
return new WcfLogicalTypeInfo (t, filePath);
else
#endif
return new AsmxLogicalTypeInfo (t, filePath);
}