beamable / BeamableProduct

The beamable product suite including com.beamable, com.beamable.server, microservice base image, portal, the installer, and build scripts
Other
3 stars 0 forks source link

ContentRef should have a constructor that takes a content ID string parameter #3518

Open allister-beamable opened 3 days ago

allister-beamable commented 3 days ago

I found myself inordinately irritated today that I have to say:

var swordRef = new ContentRef<SwordItemContent>
{
  Id = swordContentId
};

instead of

var swordRef = new ContentRef<SwordItemContent>(swordContentId);

Why can't I do the latter? If it is easy to have a string-accepting constructor, we should have one.