public ReplaceUser ( System newTimestamp, bool newIsLoggedIn ) : |
||
newTimestamp | System | |
newIsLoggedIn | bool | |
Результат |
public Entity ReplaceUser(System.DateTime newTimestamp, bool newIsLoggedIn)
{
var entity = userEntity;
if(entity == null) {
entity = SetUser(newTimestamp, newIsLoggedIn);
} else {
entity.ReplaceUser(newTimestamp, newIsLoggedIn);
}
return entity;
}
Context::ReplaceUser ( string newName, int newAge ) : |
#pragma warning disable static void userComponent(Context context, UserComponent component) { var e = context.userEntity; var name = context.user.name; var has = context.hasUser; context.SetUser("John", 42); context.ReplaceUser("Max", 24); context.RemoveUser(); }