Rolog

Blog ( Of Ryan Olshan)

News

About Ryan Olshan

LinkedIn Profile

Follow Ryan via twitter

Join StrongTypes - Free Generics Help By Email
Join StrongTypes

Community Credit Winner

View my MVP profile

The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are my own personal opinions and do not represent my employer's view in any way.

Subscribe to Rolog via My AOL
Subscribe to Rolog via Bloglines


Subscribe to Rolog via Feedburner

Furl Rolog




Subscribe to Rolog via Newsburst


Subscribe to Rolog via Pluck

Add Rolog to Technorati Favorites




Thycotic Secret Server

Receive Email Updates


Yahoo! Groups

  • => StrongTypes <=
  • AspNet2
  • AspNet20GridView
  • PayPalDevDotNet
  • RubyOnRails
  • VSTS

.NET Websites

  • => StrongTypes.com <=
  • Community Credit
  • DotNetSlackers
  • EasyListBox
  • SystemNetMail.com
  • SystemWebMail.com

Other Websites

  • 911 Pigeon Alert
  • Pacific Wildlife Project
  • My Personal Blog
  • Robblehead Around The World

Blogroll

  • Alex Campbell
  • Chris Taylor
  • Darren Neimke
  • David Betz
  • Eric Smith
  • Rob Caron
  • Rob Howard
  • Sam Gentile
  • Scott Guthrie
  • Scott Mitchell
  • Tess
  • Wesner Moise
  • Jason Alexander
  • Bill Ryan
  • Steve Smith
  • Sahil Malik
  • David Silverlight

Strong Coder Bloggers

  • Dean Fiala
  • Kevin Jones

May 2007 - Posts

Every other day, my mailbox at work was reaching its size limit despite moving big items to a personal PST file. I couldn't figure out why it kept filling up so fast. By analyzing folder sizes, I discovered that RSS Feeds in Outlook 2007 count toward your Exchange size limit, and one of my RSS feeds was taking up a lot of space. After I moved the old RSS feeds from the feed in question to the personal PST file, the problem went away.

Share this post: | | | | |
Posted: by Ryan Olshan | with
Filed under: ,
Implicit and Explicit Operators in C#

For a side project I'm working on, explicit operators have come in handy in the data layer. With explicit operators, you can convert from one class to another using a user-defined conversion operator. For example:

    public class MyClass

    {

        private int _id;

        private string _description;

 

        public int ID

        {

            get { return _id; }

            set { _id = value ; }

        }

 

        public string Description

        {

            get { return _description; }

            set { _description = value ; }

        }

 

        public static MyClass GetMyClass( int id)

        {

            return ( MyClass ) AnotherClass .GetRows(id);

        }

 

        public static explicit operator MyClass ( DataTable dataTable)

        {

            MyClass myClass = new MyClass ();

            myClass.ID = Convert .ToInt32(dataTable.Rows[0][ "ID" ]);

            myClass.Description = Convert .ToString(dataTable.Rows[0][ "Description" ]);

            return myClass;

        }

    }

 

    public class AnotherClass

    {

        public static DataTable GetRows( int id)

        {

            DataTable dataTable = new DataTable ();

            //...

            return dataTable;

        }

    }

With implicit operators, you can implicitly convert from one class to another using a user-defined operator without casting. For example:

    public class MyClass

    {

        private int _value;

 

        public int Value

        {

            get { return _value; }

            set { _value = value ; }

        }

 

        public MyClass()

        {

        }

 

        public MyClass( int value)

        {

            _value = value;

        }

 

        public static void SomeMethod()

        {

            MyClass myClass = new MyClass (2);

            int id = myClass;

        }

 

        public static implicit operator int ( MyClass myClass)

        {

            return myClass.Value;

        }

    }

Pretty cool, huh?

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: May 24 2007, 03:37 PM by Ryan Olshan | with no comments
Filed under:
Twitter

I've been using for a couple of months and I'm . For those that don't know what Twitter is, I basically consider it a legal way of stalking what your friends and other people are doing. :) I recently started contributing to an open source Windows Twitter client called . Twitter is an interesting concept and I sometimes find myself using Twitter more frequently than IM. See you in Twitter land.

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: May 19 2007, 02:50 PM by Ryan Olshan | with no comments
Filed under: ,
Useful Error

Today I was working on a MindMap and got the below error (click to enlarge). It was very helpful.

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: May 15 2007, 02:23 PM by Ryan Olshan | with no comments
Filed under: ,
Funny Videos

Here's a couple of funny videos I came across today:

oPhone - http://tinyurl.com/2fu88t
Horrible presentations - http://tinyurl.com/yrofdc

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: May 09 2007, 04:57 PM by Ryan Olshan | with no comments
Filed under: ,