s. 2 “dwelling-house” means the whole or any part of a building or structure that is kept or occupied as a permanent or temporary residence, and includes
(a) a building within the curtilage of a dwelling-house that is connected to it by a doorway or by a covered and enclosed passage-way, and
(b) a unit that is designed to be mobile and to be used as a permanent or temporary residence and that is being used as such a residence;
In Beune,  B.C.J. No. 1082 (in the context of a Feeny warrant):
50 I do not discount the position urged by counsel for the accused that no court appears to have considered whether, in modern society, the relationship between an apartment building and a residential unit within it falls within the area of the dwelling curtilage. There may be a plausible argument to be made that the unit in which Beune resided at the time, being connected directly by a hallway or passageway to the front door of the outer building envelope, may fit within the statutory definition of dwelling-house under section 2 of the Code.
[See R. v. Adams, 2001 157 CCC (3d) 220 Ont. C.A. re: laundry room in rooming house]
Groves,  O.J. No. 1030 (CJ, Shelkirk J):
22 “Residence” can have different meanings depending on the context. It has one meaning in tax laws. It has another meaning in immigration laws. It is not defined in the Criminal Code or any other applicable statute to this case.
23 In Black’s Law Dictionary (1990), it is defined as,
“Place where one actually lives or has his home; a person’s dwelling house or place of habitation; an abode, house where one’s home is; a dwelling house,”
24 In the Canadian Oxford Dictionary (2001), it is defined as,
“The place where a person resides; an abode, a house, especially an impressive one. ”
Abode is defined as,
“A dwelling place, one’s home.”
25 The context in which this word “residence” is used is of assistance in defining it. The purpose behind the condition which restricts one to one’s residence is to prohibit one from being out of doors away from the place where one actually lives, eats and sleeps.
26 Another term describing this condition is “house arrest.”
27 Residence and a condition restricting one to one’s residence is also used in the context of a conditional sentence. In that context, it is commonly understood that what is meant is literally house arrest.
28 In this jurisdiction our forms used to set out the conditions of a conditional sentence have exceptions to the general rule of absolute restriction to one’s house such as, where appropriate, you may be outside your place of residence for the purpose of obtaining firewood or for the purpose of clearing snow and so on.
29 These exceptions make it clear that confined to one’s residence is meant literally and is strictly construed as being within the four corners of one’s house.
30 It is my conclusion, given the dictionary meaning and intention behind conditions restricting one to one’s residence, that residence is to be defined as one’s dwelling house, the place where one eats and sleeps, a house which is one’s home.
31 This definition has the additional benefit of certainty. Being at the end of one’s driveway is not being at home. Being in a detached garage is not being at home.
32 In the case at bar, being in a broken down school bus 75 to 100 feet from the house used to drink and smoke in by the accused is not being at home. The bus, although used for recreational purposes, is not one’s residence. The accused does not live there. He did not reside there. While he does use it, it is not used as his residence.
33 In my view, his residence is his house, his home and it serves no legitimate purpose to expand that definition to cover ancillary buildings located on the property. Being on one’s property is not the same thing as being in one’s residence.
There is some authority that “residence” includes the common areas of a multi-unit dwelling – Amsterdam,  O.J. No. 3245 (CJ, Regis J):
Application by Amsterdam for a directed verdict of dismissal. Amsterdam was required by the terms of his probation to be in his residence between midnight and 6:00 am. He was arrested by police in the hallway of his apartment building and charged with breaching his probation.
HELD: Application allowed. The term residence was interpreted within the context of the definition of dwelling-house provided by the Criminal Code, which included the whole or any part of a building or structure. A properly instructed jury would not convict Amsterdam on the evidence.
H.B.,  O.J. No. 5754:
36 I am permitting him to be serving a jail sentence at home, that means at home. If, for example, there is a swimming pool, if for example there are other amenities outside, he cannot take advantage of them. He is at home, in the home, considering the type of conduct that he has visited upon someone else. He is entitled, of course, to be outside the home for gardening, for snow removal, for up-keep of the lawn and things of that nature. But in essence, he is not enjoying himself outside, he is basically maintaining his property because there are others.