private void CopyContentFrom(HelloWorldCollection sourceObject) { CollectionContent = sourceObject.CollectionContent; _unmodified_CollectionContent = sourceObject._unmodified_CollectionContent; }
public static HelloWorldCollection CreateDemoDefault() { HelloWorldCollection customDemo = null; HelloWorldCollection.CreateCustomDemo(ref customDemo); if(customDemo != null) return customDemo; var result = new HelloWorldCollection(); result.CollectionContent.Add(HelloWorldObject.CreateDemoDefault()); //result.CollectionContent.Add(HelloWorldObject.CreateDemoDefault()); //result.CollectionContent.Add(HelloWorldObject.CreateDemoDefault()); return result; }
partial static void CreateCustomDemo(ref HelloWorldCollection customDemoObject);
public static HelloWorldCollection CreateDefault() { var result = new HelloWorldCollection(); return result; }