コード例 #1
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        public ArchiveItem(string uniquePath, Assembly assembly, string resourcePath)
        {
            UniquePath   = uniquePath;
            ResourceInfo = new ResourceInfoType()
            {
                Assembly = assembly, ResourcePath = resourcePath
            };
            Name = string.Empty;

            Name = ResourceInfo.ResourcePath;

            var index = Name.LastIndexOf('.');

            if (index > 0)
            {
                Name = Name.Substring(0, index);
            }

            index = Name.LastIndexOf('.');

            if (index > 0)
            {
                Name = Name.Substring(index + 1);
            }
        }
コード例 #2
0
ファイル: ArchiveItem.cs プロジェクト: OPCFoundation/UA-.NET
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        public ArchiveItem(string uniquePath, Assembly assembly, string resourcePath)
        {
            UniquePath = uniquePath;
            ResourceInfo = new ResourceInfoType() { Assembly = assembly, ResourcePath = resourcePath };
            Name = string.Empty;

            Name = ResourceInfo.ResourcePath;

            int index = Name.LastIndexOf('.');

            if (index > 0)
            {
                Name = Name.Substring(0, index);
            }

            index = Name.LastIndexOf('.');

            if (index > 0)
            {
                Name = Name.Substring(index+1);
            }
        }