Kaynak kodları sizde olmayan bir dll'inizin olduğunu düşünün (.net frameworkdeki tüm dll lerin kaynak kodu yok ki zaten bizde) içinde onlarca tip ve bu tiplere ait metodlar, özellikler vs vs. Peki siz " yahu şu xxx tipinin yyy metodu private değil de public olsaydı oh ne güzel tak tak çağırır kullanırdım" diye aklınızdan geçirdiğinizde ilk yapılacak iş Reflection ile private metodu çağırmak olurdu ki, hem kullanması biraz karşık - parametrelerin uyum kontrolu, tip kontrolü, koddaki kirlilik de cabası - hem de performans sorunundan dolayı tam düşüncelerimizdeki o "sadeliği :) " gerçekleyemiyor :))  o zaman yapılacak iş dll'i açık private metodu public yapıp sonra aynı dll'i bozmadan tekrar kaydetmek... Bu işi yapan çok güzel bir aracı sizlere tanıtmak istiyorum...

Şurdaki adresten edinebileceğimiz aracı kurdukdan sonra test amaçlı bir dll projesi oluşturup public ve private üye elemanlar içeren bir tip ekleyip dll'i oluşturalım.

using System;
using System.Collections.Generic;
using System.Text;

namespace DllEditTest
{
    public class DummyObject
    {
        public string GetXml()
        {
            return "<xml>";
        }

        private void Cagiramazsinki()
        {

        }
    }

    class SecretObject
    {
        private int _price;
        public int Price
        {
            get { return _price; }
            set { _price = value; }
        }
    }
}

Örnek Dll'i test edecek bir uygulama oluşturup, kullandığımızda SecretObject isimli tipe beklediğimiz gibi erişmediğimizi görürüz.

Yine beklediğimiz gibi DummyObject sınfından bir nesne oluşturduğumuzda  Cagiramazsinki isimli private metodun görünmediğini görürüz.

 

Şimdi CFF Explorer uygulamasını başlatıp ilgili dll'i bu uygulama ile düzenlemek için ( File -> Open ) açalım. Aşağıdaki resimdeki gibi dll'in içerisindeki erişilebilen tipin metod bilgilerine erişelim.Dikkat ederseniz sadece erişilebilen public metodlarının listelendiğini göreceksiniz. Listeden Cagiramazsinki isimli private metodu seçtip sağ kısımda Flags satırının en sonunda "Click Here" yazan yere tıkladığınızda metodun özellikleri çıkacaktır. Bu kısımda "public" seçeneğini seçip dialog penceresini kapatıp, dll'imizi kaydediyoruz.

Tekrar dll'i test ettiğimz örnek uygulamamıza dll i eklediğimizde artık bu metodun da çağrılabildiğini göreceğiz.

 

Yine benzer şekilde TypeDef node'undan SecretObject'i seçip Flags kısmından sınıfımızı public olarak işaretleyip dll imizi kaydettikden sonra bu sınıfa da test projemizden erişilebildiğini görürüz.

Böylelikle bir dll in tüm özelliklerini değiştirirek kendimize özel hale getirip kullanabiliriz. Tabi ki iyi niyetle, tüm bu çabaların daha iyi uygulama geliştirme amaçlı olduğunu aklımızdan çıkarmadan değil mi ? :))))) Daha fazla bilgi için bu yararlı aracın sayfasından yararlanabilirsiniz.

Bir sonraki yazımda da yine iyi niyetli düşüncelerimizi gerçekleştirmek için neler yapabileceğimizi inceleyeceğiz.


 
Friday, October 16, 2009 9:33:29 AM (GTB Daylight Time, UTC+03:00)
<h2 align="center">Costs For Uggs--What It Costs?</h2>
<p>--&gt;Are you lusting after a few (or even more) <a href="http://www.goodugg.co.uk/ugg-classic-cardy-c-161.html">Ugg boots</a> and if so, you're in good company, as girls and women of all ages, especially with the simple, slipper-like design of these sheepskin <a href="http://www.goodugg.co.uk/grey-ugg-boots-5819-classic-cardy-p-23458.html">ugg boots sale </a>, which are relatively easy and very comfortable to wear. And they appear to be affected. Some men are also jumping on the trend and luxury UGGs? Australia, the brand also offers a range of contemporary styles for them.</p>
<p>--&gt;Could you mind giving everyone loves from <a href="http://www.goodugg.co.uk/ugg-classic-tall-c-162.html">ugg classic </a>? There are so many types of uggs, <a href="http://www.goodugg.co.uk/ugg-bailey-button-c-178.html?zenid=847c0f495b87cb43928dcc19d09f4019">ugg bailey button</a>,ugg <a href="http://www.goodugg.co.uk/ugg-classic-tall-c-162.html">classic tall</a>, ugg <a href="http://www.goodugg.co.uk/ugg-classic-short-c-160.html">classic short</a>, ugg <a href="http://www.goodugg.co.uk/ugg-classic-cardy-c-161.html">classic cardy</a>. How to choose your favorite? Or do you really want to one uggs regardless its style? Despite their design is awkward and slipper-lile, <a href="http://www.goodugg.co.uk/">Uggs</a> is one of the few stations that are of general interest, have argued that cross generational lines.</p>
<p>--&gt;Young people, students and young mothers and the Middle Ages, the original Black <a href="http://www.goodugg.co.uk/ugg-ultra-tall-c-167.html">Ultra Tall UGG Boots</a>, seem pulled the fleecy-lined boots that are manufactured in Australia, with the best materials. Are you sure that your feet warm in winter without socks, and cool in summer so that is more versatile too? If no, hurry up to take one <strong>ugg boots </strong>on <a href="http://www.goodugg.co.uk/ugg-classic-tall-c-162.html">uggs on sale</a> ! That's why we see people wear them in schools, supermarkets, on the slopes and even in the most popular beaches in the United States and abroad. Many surfers also use uggs to keep their feet warm.</p>
<p>--&gt;What do you really care about? Is its price or quality, or you just following the general trend? You know what are you thinking in your heart!</p>
Saturday, October 24, 2009 3:27:05 PM (GTB Daylight Time, UTC+03:00)
why the ugg bailey<strong> <a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge sale</a> </strong>button boot is so popular? as we known,<strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge boots</a></strong> have morphed together their two most popular styles. they started with the ever-popular <strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge sand</a></strong> and then added a wooden <strong><a href="http://www.linkboots.com/ugg-classic-cardy-5819-c-26.html">classic cardy uggs grey</a></strong> from their best-selling, as seen on oprah, uggcardy. they are one pop-fusion<strong> <a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge black</a></strong>. when the new fall step into our life this year, <strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge on sale</a></strong> are beginning search for an footwear going together with their jeans. now you are reaching to the every <strong><a href="http://www.linkboots.com/ugg-classic-cardy-5819-c-26.html">classic cardy ugg australia</a></strong> for the latest fashion trend. in past two or<A href="http://www.thegoodboots.com/specials.html" target="_blank"><strong> </strong></A>three years, the <strong><a href="http://www.linkboots.com/ugg-classic-cardy-5819-c-26.html">classic cardy uggs on sale</a></strong> kept women, men and kids <strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge boot</a></strong> salewarm and cozy under its super-popular fashion. <strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge chestnu</a></strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">t</a> the new fall in 2009, we get<strong> <a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge uk</a></strong>. the <strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">knightsbridge uggs</a></strong> become the first choice for ugg follower<strong> <a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge ugg boots</a> </strong>and getting hotter and hotter. the <strong><a href="http://www.linkboots.com/ugg-womens-knightsbridge-c-50.html">ugg knightsbridge uggs on sale</a> </strong>style c the bailey button has become a must have this winter. now<strong> <a href="http://www.linkboots.com/ugg-bailey-button-5803-c-30.html">ugg australia bailey button</a> </strong>there are 5 colors available in 5 colors including black, chestnut, grey, chocolate and sand on<strong> <a href="http://www.linkboots.com/ugg-bailey-button-5803-c-30.html">ugg australia bailey button boot</a></strong>. we provide enough stock for this fall and winter. you <A href="http://www.thegoodboots.com/ugg-classic-cardy-c-2.html" target="_blank"><strong>ugg shoes </strong></A>wil enjoy shopping anytime before this <strong><a href="http://www.linkboots.com/ugg-bailey-button-5803-c-30.html">ugg boots bailey button</a></strong>. anyway, the popular classic styles including <strong><a href="http://www.linkboots.com/ugg-bailey-button-5803-c-30.html">bailey button grey uggs</a></strong>, ugg boot short (5825) and<a href="http://www.linkboots.com/ugg-classic-cardy-5819-c-26.html"> <strong>classic cardy ugg boots</strong></a><strong></strong> are all your choices. tags ?
Sunday, November 01, 2009 3:01:18 AM (GTB Standard Time, UTC+02:00)
Thanks for article. Everytime like to read you.<br /><p><a href="http://www.topugg.com/ugg-classic-tall-boots-c-3.html">UGG Classic Tall</a></p>
Thanks for article. Everytime like to read you.<br /><p><a href="http://www.topugg.com/ugg-bailey-button-boots-c-14.html">Ugg Bailey Button </a></p>

Friday, November 06, 2009 3:50:23 AM (GTB Standard Time, UTC+02:00)
Do you want to buy some sheepskin boots, please come to www.findugg.com.Full range of UGG boots for Men and Women to buy online. Fast and free shipping to worldwide, competitive price, high quality, and efficient service.

Read more:http://www.findugg.com
Saturday, November 14, 2009 10:17:28 AM (GTB Standard Time, UTC+02:00)
Christmas is coming,Want to buy new <a href="http://www.selluggsboots.com/classic-tall-ugg-boots-c-5.html" target="_parent"><strong>Classic Tall Ugg Boots </strong></a>,We are professional supply <a href="http://www.selluggsboots.com/ugg-knightsbridge-c-23.html" target="_parent"><strong>Ugg Knightsbridge</strong></a> online,get a pair of cheap<a href="http://www.selluggsboots.com/ugg-mayfaire-boots-c-30.html"><strong>Ugg Mayfaire Boots</strong></a> this winter,free shipping and nontax,only need 1 week to your hand!
Thursday, November 26, 2009 7:17:06 AM (GTB Standard Time, UTC+02:00)

<a href="http://www.gouggs.com/">Ugg Australia</a> Brand by the American company Deckers is a popular maker of Ugg Boots and fashion footwear. As we specialize in Australian made <a href="http://www.gouggs.com/">Ugg Boots</a> we do not sell Ugg Australia brand boots on this site but due to popular demand we can offer Ugg Australia Brand at our affiliated site: www.e-uggs.com;UGG New Style Boots are made from the <a href="http://www.gouggs.com/">highest quality plush twin-faced sheepskin</a>with craftsmanship you expect from UGG Australia.100% premium
Tuesday, December 22, 2009 3:15:24 AM (GTB Standard Time, UTC+02:00)
20091222c1ygy I wear <a href="http://www.boonoutlet.com/ugg-genuine-womens-nightfall-boots-black-p-1251.html">UGG Nightfall Boots on sale</a>is considered a kind of a fashion trend, this trend has affected the whole world. If you have not tried, then it is regrettable. With the advent of winter, <a href="http://www.boonoutlet.com/ugg-new-arrival-suede-boots-5230-black-p-1279.html">UGG New Arrival Suede Boots </a>online become popular up a lot of people can not wait to experience the feeling of wearing ugg prices ugg some people appear to be high, ugg boots online above ugg style good, <a href="http://www.boonoutlet.com/ugg-boots-gray-carved-in-pattern-on-hot-sale-p-1226.html">UGG Gray classic tall</a> are always welcome to many people as it is high quality and fashion design.For myself,i like this
<a href="http://www.boonoutlet.com/ugg-authority-classic-mini-boot-black-for-women-p-1014.html">UGG Classic Mini Boot </a> very much,you can have it and show yourself now,it is not let you downUgg Napoule Sandal,the price is not expensive. To meet your needs, make haste to experience the feeling of the trend.


Tuesday, January 05, 2010 4:36:02 AM (GTB Standard Time, UTC+02:00)
<a href="http://shop.brandsuper.com/nike-air-max-shoes-nike-air-max-360-shoes-c-54_65.html">Air Max 360</a>
<a href="http://shop.brandsuper.com/nike-basketball-shoes-kobe-bryant-shoes-c-238_245.html">kobe bryant shoes</a>
<a href="http://shop.brandsuper.com/nike-basketball-shoes-kobe-bryant-shoes-c-238_245.html?page=12&sort=20a">Nike Kobe 4</a>
<a href="http://shop.brandsuper.com/nike-basketball-shoes-c-238.html">Nike Kobe 5</a>
<a href="http://shop.brandsuper.com/nike-air-max-shoes-nike-air-max-90-shoes-c-54_55.html">Air Max 90</a>
<a href="http://shop.brandsuper.com/nike-air-max-shoes-nike-air-max-1-shoes-c-54_80.html">Air Max 1</a>
<a href="http://shop.brandsuper.com/nike-basketball-shoes-c-238.html">nike basketball shoes</a>
Tuesday, January 05, 2010 4:44:26 AM (GTB Standard Time, UTC+02:00)
<a href="http://www.vip-boots.com/">Timberland for kids</a>
<a href="http://www.vip-boots.com/">Mens timberland boots</a>
<a href="http://www.vip-boots.com/">Womens timberland boots</a>
<a href="http://www.vip-boots.com/">Cheap timberland boots</a>
<a href="http://www.vip-boots.com/">Timberland winter boots</a>
<a href="http://www.vip-boots.com/">Timberland work boots</a>
Tuesday, January 05, 2010 4:48:20 AM (GTB Standard Time, UTC+02:00)
<a href="http://www.kissnfl.com/nfl-jerseys-c-631.html"><strong>authentic football jerseys</strong></a>
<a href="http://www.kissnfl.com"><strong>authentic jerseys</strong></a>
<a href="http://www.kissnfl.com/nfl-jerseys-c-631.html"><strong>authentic nfl jerseys</strong></a>
<a href="http://www.kissnfl.com/nhl-jerseys-c-659.html"><strong>authentic nhl jerseys</strong></a>
<a href="http://www.kissnfl.com/nfl-jerseys-c-631.html"><strong>buy nfl jerseys</strong></a>
<a href="http://www.kissnfl.com cheap authentic nfl jerseys</strong></a>
Tuesday, January 05, 2010 4:51:48 AM (GTB Standard Time, UTC+02:00)
<a href="http://www.uggood.com/">uggaustralia</a>
<a href="http://www.uggood.com/womens-ugg-classic-mini-5854-black-boots-p-1198.html">ugg mini black</a>
<a href="http://www.uggood.com/">discount Ugg</a>
<a href="http://www.uggood.com/ugg-classic-mini-boots-c-6.html">ugg mini</a>
<a href="http://www.uggood.com/">cheap ugg boots</a>
<a href="http://www.uggood.com/ugg-classic-mini-boots-c-6.html">ugg classic mini boots</a>
<a href="http://www.uggood.com/ugg-classic-mini-boots-c-6.html">mini uggs</a>
<a href="http://www.uggood.com/">ugg shoes</a>
<a href="http://www.uggood.com/">cheap ugg boots</a>
Tuesday, January 05, 2010 4:56:03 AM (GTB Standard Time, UTC+02:00)
<a href="http://www.watchesfield.com/ugg-クラシックトール-c-65.html">UGG クラシックトール</a>
<a href="http://www.watchesfield.com/ugg-クラシックショート-c-67.html">UGG Classic Short</a>
<a href="http://www.watchesfield.com/ugg-クラシックショート-c-67.html">UGG クラシックショート</a>
<a href="http://www.watchesfield.com/ugg-クラシックキャディ-c-66.html">UGG Classic Cardy</a>
<a href="http://www.watchesfield.com/ugg-クラシックキャディ-c-66.html">UGGクラシックキャディ</a>
<a href="http://www.watchesfield.com/ugg-クラシックキャディ-c-66.html">UGG ニットブーツ</a>
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview