Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SelfStringExport" /> class.
        /// </summary>
        public SelfStringExport()
        {
            FullName = "SelfStringExport";
            var builder = new ComponentInfoBuilder(GetTypeInfo());

            builder.AddSelfExport(false, typeof(string).FullName);
            builder.SetImportingCtor(TypeDescriptor.Create <string>());
            ComponentInfo = builder.BuildWithImplicitCtor();
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="StringExport"/> class.
        /// </summary>
        public StringExport()
        {
            FullName = "StringExport";

            var builder = new ComponentInfoBuilder(GetTypeInfo());

            builder.AddPropertyExport(TypeDescriptor.Create <string>(), "Export");
            builder.SetImportingCtor(TypeDescriptor.Create <string>());
            ComponentInfo = builder.BuildWithImplicitCtor();
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LazyStringMetaImport"/> class.
        /// </summary>
        public LazyStringMetaImport()
        {
            FullName = "LazyStringMetaImport";

            var builder = new ComponentInfoBuilder(GetTypeInfo());

            builder.AddPropertyImport(TypeDescriptor.Create("System.Lazy<System.String,MetaInterface>"), "Import");
            builder.SetImportingCtor();

            ComponentInfo = builder.BuildWithImplicitCtor();
        }