using System; using System.IO; using System.IO.Compression; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string zipPath = @"c:\example\start.zip"; string extractPath = @"c:\example\extract"; using (ZipArchive archive = ZipFile.OpenRead(zipPath)) { foreach (ZipArchiveEntry entry in archive.Entries) { if (entry.FullName.EndsWith(".txt", StringComparison.OrdinalIgnoreCase)) { entry.ExtractToFile(Path.Combine(extractPath, entry.FullName)); } } } } } }
16 Eylül 2014 Salı
C# Arşiv dosyalarının dışarı aktarılması
5 Eylül 2014 Cuma
WPF Enum, Binding
public IEnumerable<string> EnumCol { get; set; }
var enum_names = Enum.GetNames(typeof(YourEnumTypeHere));
EnumCol = enum_names ;
<ListBox ItemsSource="{Binding EnumCol}"></ListBox>
Kaydol:
Kayıtlar (Atom)