public MethodGen Getter() { if (_getter == null) { LockSignature(); _getter = new MethodGen(_owner, "get_" + Name, _attrs | MethodAttributes.SpecialName, _type, 0); _getter.ImplementedInterface = ImplementedInterface; _getter.CopyParameters(_indexParameters); _pb.SetGetMethod(_getter.GetMethodBuilder()); } return(_getter); }
public MethodGen Getter() { if (getter == null) { LockSignature(); getter = new MethodGen(owner, "get_" + name, attrs | MethodAttributes.SpecialName, type, 0); getter.ImplementedInterface = interfaceType; getter.CopyParameters(indexParameters); pb.SetGetMethod(getter.GetMethodBuilder()); } return(getter); }
public MethodGen Setter() { if (setter == null) { LockSignature(); setter = new MethodGen(owner, "set_" + name, attrs | MethodAttributes.SpecialName, typeof(void), 0); setter.ImplementedInterface = interfaceType; setter.CopyParameters(indexParameters); setter.UncheckedParameter(type, "value"); pb.SetSetMethod(setter.GetMethodBuilder()); } return(setter); }
public MethodGen Setter() { if (_setter == null) { LockSignature(); _setter = new MethodGen(_owner, "set_" + Name, _attrs | MethodAttributes.SpecialName, TypeMapper.MapType(typeof(void)), 0); _setter.ImplementedInterface = ImplementedInterface; _setter.CopyParameters(_indexParameters); _setter.UncheckedParameter(_type, "value"); _pb.SetSetMethod(_setter.GetMethodBuilder()); } return(_setter); }