private static bool ObjectDrawerForType(Type _fieldType, ref FieldDrawer _fieldDrawer, ref Type _fieldDrawerType, int _hash) { ObjectDrawerUtility.BuildObjectDrawers(); if (!ObjectDrawerUtility.objectDrawerTypeMap.ContainsKey(_fieldType)) { return(false); } _fieldDrawerType = ObjectDrawerUtility.objectDrawerTypeMap[_fieldType]; if (ObjectDrawerUtility.objectDrawerMap.ContainsKey(_hash)) { _fieldDrawer = ObjectDrawerUtility.objectDrawerMap[_hash]; } return(true); }
private static bool ObjectDrawerForType(Type type, ref ObjectDrawer objectDrawer, ref Type objectDrawerType, int hash) { ObjectDrawerUtility.BuildObjectDrawers(); if (!ObjectDrawerUtility.objectDrawerTypeMap.ContainsKey(type)) { return(false); } objectDrawerType = ObjectDrawerUtility.objectDrawerTypeMap[type]; if (ObjectDrawerUtility.objectDrawerMap.ContainsKey(hash)) { objectDrawer = ObjectDrawerUtility.objectDrawerMap[hash]; } return(true); }