- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
private bool IsChanged(string name, string surname, string patronymic, string email, bool? sex = null, byte[] avatar = null, DateTime? birthDate = null, string address = null)
{
bool r1 = sex == null ^ Sex == null ? true : (sex != null ? sex.Value != Sex.Value : true);
bool r2 = birthDate == null ^ BirthDate == null ? true : (birthDate != null ? birthDate.Value != BirthDate.Value : true);
bool r3 = address == null ^ Address == null ? true : Address != address;
bool r4 = avatar == null ^ Avatar == null ? true : (avatar != null ? !Avatar.IsEqual(avatar) : true);
bool r = Name != name || Surname != surname || Patronymic != patronymic || Email != email;
return r | r1 | r2 | r3 | r4;
}
istem 30.09.2011 16:33 # 0
gegMOPO4 30.09.2011 18:50 # 0
SmackMyBitchUp 30.09.2011 19:21 # +1
Lure Of Chaos 30.09.2011 19:58 # +1
lucidfox 01.10.2011 14:19 # −1
Фиксед?
gegMOPO4 01.10.2011 15:05 # +1
SharpRazor 03.10.2011 14:36 # −2
gegMOPO4 03.10.2011 14:45 # +2
SmackMyBitchUp 03.10.2011 17:21 # 0
KirAmp 30.09.2011 22:10 # +3
Не повезло =(
absolut 01.10.2011 08:14 # 0
lucidfox 01.10.2011 14:12 # −2
CPPGovno 01.10.2011 18:30 # +3
bugmenot 01.10.2011 18:41 # +1
Lure Of Chaos 02.10.2011 00:04 # 0
wildscliss 04.10.2011 15:17 # 0