// // MJPropertyKey.h // MJExtensionExample // // Created by MJ Lee on 15/8/11. // Copyright (c) 2015å¹´ å°ç å“¥. All rights reserved. // #import <Foundation/Foundation.h> typedef enum { MJPropertyKeyTypeDictionary = 0, // å—典的key MJPropertyKeyTypeArray // 数组的key } MJPropertyKeyType; /** * 属性的key */ @interface MJPropertyKey : NSObject /** keyçš„åå— */ @property (copy, nonatomic) NSString *name; /** keyçš„ç§ç±»ï¼Œå¯èƒ½æ˜¯@"10",å¯èƒ½æ˜¯@"age" */ @property (assign, nonatomic) MJPropertyKeyType type; /** * æ ¹æ®å½“å‰çš„key,也就是name,从object(å—典或者数组)ä¸å–值 */ - (id)valueInObject:(id)object; @end