From the article you have referenced.
There are no actual attributes that use the CalendarRulesType. When using the early binding style, the code generation tool will create the following two simulated attributes that are not present in the metadata. These attributes actually represent a view of the calendar rules records associated in a one-to-many relationship to the entity instance.
Just like any other relationship, you can use Associate or just use the early/late bound attributes and reference the entity collection:
Early/Late bound:
calendar.CalendarRules = new[]
{
new CalendarRule()
{
Id = calendarRuleId
}
};
Associate:
organizationService.Associate(Calendar.EntityLogicalName, calendarId, new Relationship("calendar_calendar_rules"),
new EntityReferenceCollection(new[]
{
new EntityReference(CalendarRule.EntityLogicalName, calendarRuleId)
}));